Re:How to Make Websites That Will Require Lots of Your Time ...
by kaptainscarlet on Monday July 28, 2025 @04:25PM
(#44715177)
People who avoid ORMs endup writing their own worse ORM*. ORMs are perfect if you know how and when to uses them. They encapsulate a lot of the mind numbing work that comes with raw sql such as writing inserts for a 50 column database.
[ Parent
| on HN ]
Re:How to Make Websites That Will Require Lots of Your Time ...
by itake on Monday July 28, 2025 @09:43PM
(#44718029)
100%. I once tried to optimize a SQL query, moving away from the ORM, so I can have more control of the query structure and performance.
I poorly implemented SOLID design principles, creating a complete mess of a SQL Factory, which made it impossible to reason about the query unless I had a debugger running and called the API directly.
Re:How to Make Websites That Will Require Lots of Your Time ...
by adampwells on Monday July 28, 2025 @10:39PM
(#44718335)
I find that Claude writes boilerplate SQL very well, and is effectively an 'ORM' for me - I just get plain SQL for CRUD.
Complex queries I write myself anyway, so Claude fills the 'ORM' gap for me, leaving an easily understood project.
Re:How to Make Websites That Will Require Lots of Your Time ...
by Too on Tuesday July 29, 2025 @03:38AM
(#44720254)
Writing is just half the job. Now try migrations, or even something as fundamental as ”find references” on a column name. No, grep is not sufficient, most tables have fields called ”id” or ”name”.