Wednesday, March 28, 2012

One thing a day: programming in Ruby

These past two days saw me programming in Ruby on the BASIC-1965 project. I added functionality to the program and added tests. The tests were the more useful of the two; they verified functionality that I had added for IF/THEN statements. (And revealed some defects.)

The functionality that I added was the ability to use text constants in PRINT statements. They seem simple, yet they require some thought for the program. Ruby made the addition easy -- easier that I expected -- and I am happy with the result.

The "one thing a day" idea seems to be working. With it, I can commit to one simple idea per day, one limited task that I can accomplish as an "extra" to the day's work.

No comments:

Post a Comment