looking for IDE advice or workflow tips

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • kpierce8@gmail.com

    looking for IDE advice or workflow tips

    I'm a novice developer at best and often work with the R statistical
    programming language. I use an editor called TINN-R which allows me to
    write a script, then highlight a few lines and send them to the
    interpreter. I am using pythonwin and it lacks this funtionality (that
    I can tell) and when I copy and paste lines into the interpreter only
    the first line is evaluated and the rest appears as returned text.

    Is there an editor that allows me to send a few lines out of many
    lines of code at a time?

    or

    How does one check small blocks of code without typing them each time,
    running an entire script (with other code) or creating a small script
    for every code block?

    For example say lines 1-100 work fine and now I'm working on lines
    101-105. Should I create a small script with just those lines?

    Thanks for any advice
  • Jeff

    #2
    Re: looking for IDE advice or workflow tips

    On Aug 4, 2:08 pm, "kpier...@gmail .com" <kpier...@gmail .comwrote:
    I'm a novice developer at best and often work with the R statistical
    programming language. I use an editor called TINN-R which allows me to
    write a script, then highlight a few lines and send them to the
    interpreter. I am using pythonwin and it lacks this funtionality (that
    I can tell) and when I copy and paste lines into the interpreter only
    the first line is evaluated and the rest appears as returned text.
    >
    Is there an editor that allows me to send a few lines out of many
    lines of code at a time?
    >
    or
    >
    How does one check small blocks of code without typing them each time,
    running an entire script (with other code) or creating a small script
    for every code block?
    >
    For example say lines 1-100 work fine and now I'm working on lines
    101-105. Should I create a small script with just those lines?
    >
    Thanks for any advice
    Emacs.

    Comment

    • Terry Reedy

      #3
      Re: looking for IDE advice or workflow tips



      kpierce8@gmail. com wrote:
      I'm a novice developer at best and often work with the R statistical
      How does one check small blocks of code without typing them each time,
      running an entire script (with other code) or creating a small script
      for every code block?
      >
      For example say lines 1-100 work fine and now I'm working on lines
      101-105. Should I create a small script with just those lines?
      I use IDLE currently, but others like more sophisticated editors.
      But even IDLE will comment and uncomment a selected block.
      Or indent or dedent such a block.

      I sometimes cut and paste within the shell window or between an editor
      window and the shell.

      If lines 1-100 run in under three seconds and have no system effects, I
      don't worry about rerunning them. It won't hurt the CPU;-). If the
      file consists of nearly all function definitions, or classes with defs,
      under a second is more like it. Put one or more uncommented test calls
      for the function being worked on at the bottom and run. and edit. and
      run again.

      tjr

      Comment

      • =?ISO-8859-1?Q?Ralf_Sch=F6nian?=

        #4
        Re: looking for IDE advice or workflow tips

        kpierce8@gmail. com schrieb:
        I'm a novice developer at best and often work with the R statistical
        programming language. I use an editor called TINN-R which allows me to
        write a script, then highlight a few lines and send them to the
        interpreter. I am using pythonwin and it lacks this funtionality (that
        I can tell) and when I copy and paste lines into the interpreter only
        the first line is evaluated and the rest appears as returned text.
        >
        Is there an editor that allows me to send a few lines out of many
        lines of code at a time?
        >
        or
        >
        How does one check small blocks of code without typing them each time,
        running an entire script (with other code) or creating a small script
        for every code block?
        >
        For example say lines 1-100 work fine and now I'm working on lines
        101-105. Should I create a small script with just those lines?
        >
        Thanks for any advice
        Try another approach. Write unittests for your code. This will lead to
        more testable and shorter chunks of code and your test cases will be
        executed on each iteration step.

        Ralf Schoenian

        Comment

        • William Pursell

          #5
          Re: looking for IDE advice or workflow tips

          On 4 Aug, 19:08, "kpier...@gmail .com" <kpier...@gmail .comwrote:
          I'm a novice developer at best and often work with the R statistical
          programming language. I use an editor called TINN-R which allows me to
          write a script, then highlight a few lines and send them to the
          interpreter. I am using pythonwin and it lacks this funtionality (that
          I can tell) and when I copy and paste lines into the interpreter only
          the first line is evaluated and the rest appears as returned text.
          >
          Is there an editor that allows me to send a few lines out of many
          lines of code at a time?

          Jumping over your specific problem and going to a bigger one:
          you need to learn a major editor. This means either vi or
          emacs, preferably both, but learn at least one of them really
          well. As a developer, your editor is your main tool. It is
          worth spending time learning your editor very well, and you
          need to make sure it is an editor that will exist in 5 years.
          Also, someday you will find yourself staring at a console
          with nothing available but ed, and you will be glad of the
          time you spent learning vi.

          Comment

          Working...