3 ms·
> And next year there will be a new awesome ORM/query-language that you're expected to learn all the pitfalls of. This may be true in some lines of work, but a
by JeremyNT 6y ago
> And next year there will be a new awesome ORM/query-language that you're expected to learn all the pitfalls of.
This may be true in some lines of work, but as a Rails developer I find it amusing. I've been happily using ActiveRecord for over a decade. I get that chasing the new shiny can be fun and look good on the resume, but the ORM shouldn't be a fad you chase that you need to swap out every couple of years.
You're not wrong that sometimes the ORM gets in the way and slows you down. There are certainly times I've been frustrated by having to figure out the right incantations to satisfy the APIs of ActiveRecord or Arel. However, this tradeoff is well worth it, because these tools protect us from so many footguns present with raw query string manipulation.
- codeduck 6y ago> these tools protect us from so many footguns present with raw query string manipulation. cough Parler springs to mind.
- oblio 6y agoI just checked and Hibernate, the granddaddy of Java ORMs, is 19 years old.
- ragnese 6y agoThere's a lot of air between "I need a query string sanitizer and/or a PreparedStatement construct" vs. "I need a full blown ORM."