Archive for the ‘Ruby’ Category

Installing Rails on Leopard

Leopard comes with Rails, but I prefer to roll my own in an effort to keep my environment stable. As always Hivelogic has the goods:

Adhearsion at Ruby Hoedown '07

I first heard about Adhearsion at GoRuCo ’07. Jay’s talk at GoRuCo was great and I think it got a lot of people excited about VoIP. Since then, he has really polished his presentation. At the Ruby Hoedown, he introduced Otto, übergeek and Asterisk neophyte. Having the fictional Otto in the first part of the presentation demonstrates the benefits of Adhearsion quickly and in a way the audience can relate to. Well done Jay.

You can check out Jay’s Adhearsion presentation at Ruby Hoedown 2007 on Confreaks.

As a side note, the presentation of, well, presentations on Confreaks is great. The 2-up display of the the speaker and the slides is much better than only being able to see one at a time.

(Really) Getting Started with Ruby

About a year ago, my curiosity was piqued by Ruby on Rails. I picked up a copy of Agile Web Development with Rails and built a quick sample site. But, I realized that more than a cursory knowledge of Ruby would help move things along faster and make Rails development more enjoyable. Unfortunately, I did not have the spare time to devote to a new language, so I set it aside.

A couple weeks ago, I decided the time was right, so I got a copy of the essential Pick Axe book and started in earnest. What I found was an elegant language that lives up to the excitement that emanates from Ruby developers. The tutorials in the pick axe are adequate, enough to demonstrate the points the authors are making, but not very exciting. It is impossible to really learn a programming language with tutorials alone anyway. As with spoken language, the only way to become fluent is to use it.

My first two little exercises were little indeed. First, I wanted to run through this site and update all the self referring URLs to they were correct as there had been some URL changes over the years. This was really simple and only required hooking in to the database that runs the site and changing some URLs. This was all accomplished with ActiveRecord, some regular expressions and very few lines of code. The second exercise was to check the integrity of all the external links on this site. This was also trivial in Ruby. Most of the work with this exercise was in fixing the bad links which had nothing to do with Ruby. One would hope that a fair amount of the link fixing could be done programmatically but, unfortunately, that wasn’t what I found.

Now, I feel like I’m ready to dive back into Rails. I’m also happy to be using an elegant language that has a passionate community behind it. If you are contemplating the use of Ruby, I suggest trying one or two tasks with it. I doubt you’ll be disappointed.