David Heinemeier Hansson (DHH)
๐ค SpeakerAppearances Over Time
Podcast Appearances
Active record just takes that tediousness away.
It makes it possible to combine things in a way that a humanly describable language just doesn't.
It composes things into methods and you can combine these methods and you can build structures around them.
So I don't dislike SQL.
I dislike a lot of things in programming.
I try to get rid of them.
SQL wasn't really one of them.
It was just a sense of, I don't want to write the same thing over and over again.
It was a
Can we be a little more succinct?
Can we match it just slightly better to the object orientation without trying to hide away the fact that we're persisting these objects into a database?
That's where I think a lot of ORMs went wrong.
They tried to live in the pure world of objects.
never to consider that those objects had to be consistent into a SQL database.
And then they came up with convoluted way of translating back and forth.
Active record says, do you know what?
Just accept it.
This record, this object is not going to get saved into some NoSQL database.
It's not going to be saved.
It's going to be saved into a SQL database.