By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
464,332 Members | 1,198 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 464,332 IT Pros & Developers. It's quick & easy.

looking for IDE advice or workflow tips

P: n/a
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
Aug 4 '08 #1
Share this Question
Share on Google+
4 Replies

P: n/a
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.
Aug 4 '08 #2

P: n/a


kp******@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

Aug 5 '08 #3

P: n/a
kp******@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
Aug 5 '08 #4

P: n/a
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.
Aug 5 '08 #5

This discussion thread is closed

Replies have been disabled for this discussion.