HOME JAVA & JEE OPEN SOURCE .NET WEB & RIA CLOUD & GRID ARCHITECTURE & DDD AGILE PM & SCRUM AGILE TESTING & BDD OS, MOBILE & SERVER  
London Ruby User Group:Ruby vs. The World
Ruby vs. The World
Matthew Rudy Jacobs has been comparing Ruby against how other languages do similar things. In this talk he's going to present his findings and suggest some things that as Rubyists we might learn from our alternate language using brethren.

Review:
As part of the December 2008 LRUG meeting, Matthew Rudy Jacobs introduces the topic he's been working on for the past few weeks: taking features that already exist in other languages and implementing them in Ruby. It is a very informative presentation whereby he guides you through the reasons why it might be useful and how he did it. Matthew used a very interesting method for his "slides" - he opened a massive pdf file that he proceeded to zoom in on for each 'slide!' You can find the presentation in the link below.

The first feature that Matthew implements in Ruby is Doctesting (using DocStrings) from Python. The idea is that you can include a test within the DocString, a testing framework will then look for this test and execute it. The second idea is from Jango - by assigning a field type, the language can already know how to validate it without the need to go for regexp to check it. This looks to be a very useful tool, especially in applications with the ability to check that email address and even Postcodes are the correct type, for example.

The other three ideas introduced by Matthew are: the inclusion of Aspects as done in AspectJ for Java; classey tee, which is a method to allow a form of Class Table Inheritance; and code-free templating. Perhaps the most interesting is the last one - a control that ensures you don't overuse too many database calls.

All of the code can be found here.
Review by David Mulholland
Download the slides here

ABOUT MATTHEW RUDY JACOBS
Matthew is a web developer, photographer, and self described film geek.
More about Matthew Rudy Jacobs
PODCAST RUBY VS. THE WORLD
Digg! StumbleUpon
© Copyright 2003-2010, Skills Matter Ltd
  Web development by You In Control
About Us  Jobs  Find Us  Meeting & Training Rooms  Newsletter  Community  Community-FR  Apress  1st Teach  Jobs: Sales Executive  Jobs: Student Podcaster  jobs - marketing assistant  Spring Certification