| Web Development >> Ruby On Rails |
Ruby vs. The World
| Language: | English | Quality: | Average | Has Audio: | true | Source: | SkillMatter | Media: | Flash | Posted On: | 04 Feb 09 |
|
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. |
Tags: SkillMatter, screencast, ruby, aspectj, java, [SUGGEST A TAG]
|