This post originated from an RSS feed registered with Ruby Buzz
by Adam Green.
Original Post: Ruby code get simpler over time
Feed Title: ruby.darwinianweb.com
Feed URL: http://www.nemesis-one.com/rss.xml
Feed Description: Adam Green's Ruby development site
I've noticed an interesting phenomenon with my Ruby code. The more I work on a program, the simpler it gets. I don't mean more terse or dense. I mean cleaner and easier to read. Perl, on the other hand, seems to get more unreadable the better you get at programming in it. This is largely a matter of gradually learning the Ruby language. I know I keep harping on this, but the existing documentation is insufficient. I keep the pickaxe book and Fulton's book at hand and keep reviewing them, but I'm constantly finding things that they don't cover. Another problem is the large number of similar methods for many common classes, like Time. It forces me to experiment with many variations until I find the shortest path. Once I do, however, the code suddenly starts to flow nicely. I have the feeling that once I know this language well I'll be able to do some really neat things in a short period, especially once I'm comfortable writing my own classes.