Fail spectacularly if you happen to indent incorrectly (but not intuitively). Thankfully, Jamis Buck points out a simple solution on the Ruby mailing list:
<% case number
when 1 %>
one
<% when 2 %>
two
<% else %>
something else
<% end %>
Thank you Jamis!
Posted in Uncategorized | No Comments » | Add to Delicious | Digg It
Each year O’Reilly publishes on their blog a State of the Computer Book Market analysis. It is an excellent indicator of computer programming language trends. Geeks love their books and programming geeks adorn their desks with as many reference books as possible. Despite living in a hyper connected world we cannot risk even one moment without access to the more obscure and arcane intricacies of our chosen languages and toolsets.
And Ruby is cleaning up: officially recognized as a “Mid-Major Programming Language”. And in good company too with Visual Basic and ActionScript.
Perhaps its the growing body of knowledge or perhaps its just the beauty and simplicity of the language itself. Probably a little bit of both. Its nice to see such a fun and rewarding environment growing into the hearts of the mainstream. We love Ruby here at Nitobi and we have grown a good number of Ruby projects and expertise. With Java and, soon, .NET support we’re looking forward to bringing Ruby to even more places. And adding more books to our shelves!
Posted in .NET, IronRuby, JRuby, java, nitobi, rails, ror, ruby, software | No Comments » | Add to Delicious | Digg It