Re:Ruby Video – On a mission to index all Ruby conferences
by revskill on Tuesday December 17, 2024 @09:26AM
(#42441569)
Only with ActiveRecord pattern you need such kind of hacks to prevent, it's why it's flaw.
[ Parent
| on HN ]
Re:Ruby Video – On a mission to index all Ruby conferences
by freedomben on Tuesday December 17, 2024 @10:02AM
(#42441880)
`includes` is not a hack. Clearly you prefer implicit over explicit when it comes to SQL generation. That's your prerogative, but I strongly disagree. I don't want the ORM trying be clever on me because it is opaque and complex. I want it to use the function arguments to construct a query, and nothing else.
Debugging long-running queries is already complex enough without "clever" code trying to abstract it all away from me. Some things should not be abstracted way. It feels nice when your database is small, but it cuts hard when you start to scale.