vaes9

Learning Ruby

3:10 pm PHT

One of my mid-term goals is to learn the Ruby programming language and then quickly move on to Ruby on Rails, a web application framework that lets you develop database-driven websites in a fraction of the time it takes to do it using traditional methods (like through PHP).

The more in-depth story is that I was first deciding between Ruby and Python as the language to learn. Python is another popular programming language that’s often compared with Ruby. I’ve been doing Perl for like eight years now (my first project in that language was to create a really simple web forum software that uses flat text files for its database back in 1999) and Perl is still my web language of choice (this blog and Lakbayan were written in Perl). The problem is that Perl’s age is showing and the itch to learn a new language is growing. Among the languages worth learning, it’s Ruby and Python that are currently the most-mentioned, and so I restricted my choices to those two. It also helps that both Python and Ruby heavily borrowed concepts from Perl so the transition won’t be a problem.

Between the two, Python is easily the more popular. Python, along with Java and C++, is one the “official” languages of Google. Python was also promoted by Mark Pilgrim, one of the popular tech geeks on the Web, through his free book, Dive Into Python. Also, Python has a more mature community and has more third-party code libraries than Ruby.

Despite that, I chose Ruby over Python. What convinced me are the anecdotal stories that Ruby is a more beautiful language, is easier to learn because it espouses the principle of least surprise, and because of its ultra-popular Ruby on Rails (RoR) web framework. (In fact, it was RoR that single-handedly pushed Ruby to the forefront of web developers’ consciousness.) Another reason that pushed me to choose Ruby is that I found the Ruby adventures of Tim Bray—a tech blogger (and co-author of the XML specification) whose blog I read regularly—quite enlightening.

So last week, I read Migs Paraz’ blog entry about him practicing Ruby. That post spurred me to get off my proverbial chair and to take the first step in crossing out “Learn Ruby” on my mental to-do list.

Anyway, I already checked out Why’s (Poignant) Guide to Ruby, possibly the most popular tutorial on Ruby, and I quickly dismissed it because it’s too disorganized. The writing style and and the cartoon foxes were admittedly humorous, but they were too distracting. I settled instead with the now-free 1st Edition of Programming Ruby: The Pragmatic Programmer’s Guide, also known as the Pickaxe book. While the 2nd Edition is vastly updated, you have to buy the book, and being the cheap bastard that I am, I think I can make do with the 1st Edition especially since I just want to pick up the language.

I haven’t done any actual coding since I have yet to download the Ruby interpreter, but I’ve finished reading the first several chapters of the Pickaxe book and I must say that Ruby is indeed pretty. I haven’t written a single line of Ruby code and I’m already falling in love with the language. Hehehe.  :)

Filed under

Add your comment | 10 comments

Comments

Comment times are in Philippine time (+0800).

1

On 10:37 p.m., 13 Aug 2007, mae wrote:

oooh ako rin I want to learn ruby, i’m working in a company that uses ruby so I hope it will make things easier hehe I’ve been meaning to learn at least one programming language and I’ve set my mind on ruby, the only question that remains is “what to build?”  :D

2

On 12:24 a.m., 14 Aug 2007, Miguel wrote:

Excellent… looking forward to Rails map apps!

What to build? Just imagine the site or service you want to see.

Join us at ruby-phil@googlegroups.com!

3

On 1:10 a.m., 14 Aug 2007, seav wrote:

@Mae, go on and learn Ruby! If you have some programming experience, you’ll find Ruby quite easy to learn. If the problem is finding what to build, don’t worry about it too much, ideas will come to you eventually.  :-)

@Migs, I was actually thinking of building a community website instead of a mapping web app for RoR.  :p I’ll check the Google Group out.

4

On 1:35 p.m., 14 Aug 2007, j4s0n wrote:

Welcome to the Club  :)

5

On 8:53 p.m., 14 Aug 2007, mae wrote:

that’s the thing, I have no background in programming—everything I know right now kasi is self-taught eh hehe

on the app thing, I guess it’s just personal kasi I find it easier if I could practice it on something na agad lol

6

On 11:41 p.m., 14 Aug 2007, seav wrote:

@Mae, Ah. Well, you can’t say that you can’t unless you try, right? I’ve seen the ideas behind Ruby and I don’t find it hard to learn. Then again, it assumes that you know a bit about object-oriented programming.  :-)

7

On 3:44 p.m., 15 Aug 2007, Jon Limjap wrote:

I’ll probably be checking out Ruby soon, if only to soothe my ruby envy (wrote about that here: http://dotnet.kapenilattex.com/?p=37)  :p

8

On 9:33 p.m., 15 Aug 2007, seav wrote:

@Jon, do check it out. Ruby’s iterators is a really nice feature of the language.  :-)

@Jason, thanks! I’ll learn the language and create beautiful things with it.  :D

9

On 3:09 p.m., 17 Aug 2007, j4s0n wrote:

Seav,

will be waiting for your cool apps.  =)

Jason

10

On 12:08 a.m., 28 Aug 2007, seav wrote:

@Jason, well, don’t expect anything substantial soon. But I will try. Hehehe.  ;)

Post your comment here

Comments moderated: Comments for this entry is now moderated. That means that the author will have to approve the comment before it can be viewed by the public.

Remember The Data Above? (Uses Cookies)

Comment shown to:

Comment notes

Your name and e-mail address are required. Your e-mail won't be displayed.