Linked by Thom Holwerda on Wed 11th Apr 2007 16:35 UTC, submitted by ShlomiFish
General Development "What makes programming languages are suitable or unsuitable as introductory languages? Which languages are better learnt first and at which order? And why what the masses think is the most suitable introductory programming language is not in fact that. This paper examines several approaches to which programming language is the best, and afterwards gives several useful relations for which languages should come first. Finally it gives a final verdict, defends it and then gives some other good food for thought."
Thread beginning with comment 229690
To view parent comment, click here.
To read all comments associated with this story, please click here.
RE: My Two Cents
by phoehne on Wed 11th Apr 2007 20:08 UTC in reply to "My Two Cents"
Member since:

I have a question. Did you find "irb" useful?

Reply Parent Score: 1

RE[2]: My Two Cents
by hibridmatthias on Wed 11th Apr 2007 21:46 in reply to "RE: My Two Cents"
hibridmatthias Member since:

To answer your question, yes and no.

I was originally used to using Kate and the command line to run my programs. I was so used to doing it that way I though irb wold be a pain.

Once my programs started getting big, however, I found that using irb helps me debug a chunk of code very quickly before integrating it into the main program.

For instance, the first program I wrote determines patient weight a number of weights than uses an algorithm to determine which one applies it then uses the weight and the patients age to determine the initial dose and interval.Then it takes those two numbers and uses some measured values to determine the next dose and ainterval.

I originally wrote thsi thing as a big mass and even with the line numbers shown in the error statement, I would lose sight of where my errors were coming from (especially with nested loops and the methods I'd created). Now I write a block of code, irb it, and when it is fixed, I integrate it into the whole. Works like a charm, especially when you want to try something that Scott Pine doesn't mention in his book but that you want to try anyway.

Reply Parent Score: 1