4 ms·
That sounds like the pre-ORM days. These days ORM would map member variable id to database table id.
by edwinnathaniel 11y ago
That sounds like the pre-ORM days.
These days ORM would map member variable id to database table id.
- Luyt 11y agoThe interview is from July 2009. I think Rails already had its ORM then. DHH says: "The model part in an MVC application is where all the business logic is kept. Those are all the classes like ‘Post’ and ‘Category’ and ‘Author’ and all those things –say if you're making a weblog– you'd keep all that stuff in the Model. And you'd have all the logic about whether the author is allowed to make a post and how the relationship between posts and comments work together. Those are all sitting in the model, so that's all the business logic, very often backed by a database in some sense, not always, but most of the time. And that's where in Rails we're using something called ‘ActiveRecord’. Which is this way of mapping database tables to objects, and then decorating those objects with logic."
- edwinnathaniel 11y agoI was referring to: > When I was working with PHP and Java, every single shop, almost every single application, ...
- hawleyal 11y agoI would say Rails is post-ORM. You don't even map anything. It's all convention. That is his point.
- edwinnathaniel 11y agoPlease refer to : https://news.ycombinator.com/item?id=10934605 https://news.ycombinator.com/item?id=10934605