473,387 Members | 1,516 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

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
Aug 4 '08 #1
4 1101
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


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
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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Equis Uno | last post by:
Hi there, I downloaded OWB_9.2.0.2.8_linux.tar.gz from here: http://otn.oracle.com/software/products/warehouse/index.html In the above download I found OWB installation documentation. In...
0
by: Bevertec | last post by:
May 26 2004 Our client is a major bank in Jamaica and they have a contract requirement for a professional with the following skills. This is a 6 months contract. It would be 3 weeks/month in...
0
by: Yatendra Khandelwal | last post by:
hi, I am a newbie to this (exchange server and workflows) and I am trying to create a test workflow app using workflow designer (office developer) and exchange 2003. I have created a workflow...
5
by: Francesco Zavatarelli | last post by:
not quite sure it is the right place to post... but I need to write a program in c that read a file with the following format: ...
3
by: ABC | last post by:
My client request a workflow solution. They want the solution provide as: 1. Has a workflow diagram interface presents their roles, work and tasks. 2. Support .NET technologies for developers to...
3
by: Claudia Fong | last post by:
Hi I was using a console application to host the windows workflow and when I change to winforms, I don't know how to do it... I pass the parameters into the workflow from the winform and is...
3
by: =?Utf-8?B?R3JhaGFt?= | last post by:
I've added 2 tracking services to the wf runtime; one is the standard SqlTrackingService: trackingService = new SqlTrackingService(<trackingConnectionString>); <workflow...
0
by: RoninZA | last post by:
Hi all, My problem is this... I need to somehow communicate the completion of a workflow back to the calling application. The scenario is as follows: I have a "generic" workflow engine,...
11
by: Grzegorz Staniak | last post by:
Hi, In a couple of weeks I'm starting a medium-size project (using a web framework) involving a workflow implementation. Are you aware of any open source workflow engines/libraries that I could...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.