Monday, April 4, 2005

Addressing "bogus statements" about Rails

Posted by admin

Xavier Defrang has been following the heated arguments about Rails for some time and got fed up with a bunch of “…bogus statements (FUD?) and issues raised in the TSS discussion”. So he went ahead with a summary of the claims and why he believed them to be without merit.

I particularly like the code snippet for putting the “code embedded in HTML is evil” nonsense to rest:

Of course, you could even write that snippet as a single readable line:

<%= @collection.collect { |item| content_tag "li", item.some.nested.property } %>

Code embedded in HTML is only evil when you’re not using a programming language suitable for the purpose and when you don’t apply sound principles of abstractions.