Programming Ruby

Written by Urthshu
Published January 29, 2005
page 1 | 2

Well, disappointed but undaunted, I returned to Windows. I'll consider what to replace Debian with at a later time.

In the Windows distribution, there is a small console program called irb, Interactive Ruby. A majority of the exercises within Programming Ruby can be effectively run through this little program. The exercises do a good job of explaining the fundamental building blocks of Ruby, with a book-wide example of a jukebox program to tie it together.

The jukebox is not a full program, mind you, but an extended example. Often, I like to compose a full, short program [a word game, perhaps, where you guess letters in so many tries] to get the hang of things. Such little applications are fairly easy to do in Ruby.

Programming Ruby is a four-part book. The first covers generalities, mostly, and is an excellent introduction to the language. The second, Ruby In Its Setting, covers working with Ruby in various tasks and environments, such as the Windows API. The third part gets into more nitty-gritty details of programming, and the last is an exhaustive reference of all 98 libraries.

They are arranged, obviously, in an ascending order of complexity such that, depending on your familiarity with programming, you can scan here or concentrate there, focus in on whats important to you or read it all, front to back.

It is, without a doubt, valuable as THE standard work for Ruby, a virtual bible, and Mr. Thomas deserves resounding applause. With it in hand, its quite possible to move on towards making the application you've always wanted, but could never quite figure out how to do.

But its here that I have to fall back on my memory of working with Ruby prior to my unfortunate install. Ruby had/has very good libraries for GUI writing, including the Fox and TK packages. There's a newer manger for them, too, called Gems, which imports code to be used for whatever you please. And I shouldn't neglect Rails, though I have never seen it since Gems wouldn't work, which is a Rapid Applications Framework I've heard does wonders for producing good code swiftly.

All in all, going through this manual was a frustrating experience for me when it really shouldn't have been. I'm aware that many, many others have working, reliable Ruby setups, but it just didn't seem to gel over here, despite nigh-heroic attempts to do so. 6 different installs, including ActiveRuby and mingwin32, wouldn't cut it. The Mondrian IDE wouldn't start. The charming, friendly tutorials went sadly to waste. Nevertheless, I'm anxious to give it all another try- I'm hardheaded that way- as I can easily see that Ruby has a lot going for it.

page 1 | 2
Keep reading for information and comments on this article, and add some feedback of your own!
Programming Ruby
Published: January 29, 2005
Type:
Section: Books
Filed Under: Books: Computers and Internet, Books: Nonfiction
Writer: Urthshu
Urthshu's BC Writer page
Urthshu's personal site
Spread the Word
Like this article?
Email this
Submit to del.icio.us Save to del.icio.us
RSS Feeds
All RSS Feeds (240+)
Comments on this article
BC articles by Urthshu
Books: Computers and Internet
Books: Nonfiction
All Books Articles
All BC articles
All BC Comments

Comments

#1 — January 29, 2005 @ 21:26PM — Chad Fowler [URL]

A correction and a question:

Dave Thomas, of the Pragmatic Programmers, is not the Dave Thomas that contributed to the Smalltalk book you reference here.

Wrt Gems, what happened when you tried to use it? It should be extremely easy with the latest Windows installer, since RubyGems comes with it. Please don't hesitate to contact me directly for help on RubyGems.

Chad Fowler

#2 — January 29, 2005 @ 22:40PM — urthshu [URL]

Thank you kindly for the correction, Mr. Fowler.

WRT Gems, and the installation in general, it appears the paths were broken and so wouldn't work at all.

Since I went to the trouble to download Mondrian at their site, I took an opportunity to experiment with it. Apparently the .lnk files were fussy about double vs. single quotes on my Win98se platform, and this was repeated throughout the install.

I suspect, though cannot confirm, that this niggling detail is part of the issue. Other than this, I confess to being at a loss.

#3 — February 14, 2005 @ 17:18PM — Aaman [URL]

The book is available online at Rubycentral

#4 — February 15, 2005 @ 00:47AM — Aaman [URL]

I was able to easily get Ruby working from the link in your article - I am using the pretty nice FreeRIDE - the only manual step I had to do was add my root Ruby directory (d:ruby) to the Path variable from the Control Panel - only D:rubybin was added by the install.

Easy and interesting language - still exploring the shores - my favorite for a while has been C# - mainly because of the clean construction and flexibility.

Want comments emailed to you? No spam, promise! Address:

Add your comment, speak your mind

(Or ping: http://blogcritics.org/mt/tb/24867)

Personal attacks are not allowed. Please read our comment policy.





Remember Name/URL?

Please preview your comment!

Fresh
Articles
Fresh
Comments