On Joel on Software, there’s an article with some decent criticism on Ruby on Rails and how it can be improved.
Happy to see that David H. Hanson, Ruby on Rails’ creator, has posted a civilized reply
———-
Tomas Jogin pointed out to me that the article wasn’t written by Joel on Software but by an anonymous user. My apologies, but that explains why i didn’t get the tone of voice of the article. I’ve made some corrections to the article.
A more intelligent model
Ruby on Rails, in contrast to Django , analyzes the underlying database for its model representation.
The poster’s (not JoS) point on having Rails “learn” more from the DB by analyzing the existing database relations is a good point. This would be far better than explicitly redefining them as :has_many type of relations. I wonder if ActiveRecord to of systems like Hibernate already have this kind of setup and how you could pull this off with databases that don’t have foreignkey constraints ( like MySQL for example).
On top of that, how you could recognise a One-To-Many relation from a Many-To-Many relation?
Maybe by using naming conventions as to how you name your tables and columns?
Any ideas?
———-
The idea of having Rails or other frameworks learn more from the db at runtime still has my interest. Obviously this could be a serious performance hit when checking if the tables comply with the conventions and using them if needed.
As always, open for fresh ideas.





17
februari
2006
geschreven door: smn om 9:14
hey thanks, for the tip. Hm, ok that caught me off guard, thought it was JoS that posted it. We were just discussing it here earlier that we were surprised by the tone of voice used in the article.
Thanks for the tip, i'll correct the post.
17
februari
2006
geschreven door: Tomas Jogin om 9:14
1. Joel did not write that article, some anonymous guy in his forums did.
2. The rant is not decent. For a rant to be decent, the ranter needs to have some sort of knowledge or vague understanding of the subject he is ranting about. This guy does not.
This reply is decent, however: http://zifus.blogspot.com/2006/02/regarding-rails-restric…;