"A real programmer can write Fortran code in any language". He then queries the audience for how many people came to Ruby from Java (a fair amount). Some concepts will transfer over, like OO and loose coupling. Bringing other concepts over would limit you to the java way of thinking. There are some things in ruby that are inconceivable in other languages.
Examples that were used:
- Rake::FileList
- Builder::XmlMarkup
- Dynamic Expressions
The Dynamic Expressions example is about building SQL for ActiveRecord from objects, instead of specifying SQL in find statements. He would like to use select for this. In the first cut, he pulls all records from the database, and then uses select on it (Laughter erupts). "Premature optimization is the root of all evil" (quote from Donald Knuth). It improves as the slides pass, but he says that this example isn't realistically usable. He suggests taking a look at Amibtion.
Unusual solutions are sometimes needed, but not all the time.
No comments:
Post a Comment