On 3/8/07, Chad P. [email protected] wrote:
I just got a copy of ‘Everyday Scripting With Ruby’ by Brian M.
and like it so far. Good for someone new to the language, too simple
for advanced users though.
I want to get my hands on that one. It’s probably ideal for the people
I know who are expressing interest in Ruby – too experienced with all
things programming for Learn to Program (by Chris P.) and not as well
served by something that just drops you in head-first like the Pickaxe
(by Dave T. and Andrew H.). That’s not to say the other two books
aren’t good, of course – just that I think Everyday Scripting might be
the perfect middle road.
Thats what I think too. Have 3 copies here at work, and me and the
are going through them. Too early to say how they are getting on (will
next week), but there are some great touches.
I just really like the way he introduces programming concepts as you
them. The early examples hardcode variable names (of filenames) so he
shows you how to make the script more reusable by passing them in from
the command line instead.
All the examples are like this - he takes raw, inelegant, un-DRY,
level scripting to its ultimate outcome - brittle, limited-reuse
then introduces the programming concepts necessary to overcome this:
parameterising your scripts, defining functions, using data collections,
making your own classes, using TestCase properly, and so on.
The standard of Ruby writing is quite high, but the audience for this
book is generally not well served. Its a great book, and I thoroughly
enjoy working through it (the regular expression section is now
My Girlfriend and Dad are working their way through Chris P.'s
book, and I am thinking of getting them this next.