News for hackers. Stuff that matters.
Re:Back to basics: Writing an application using Go and Postg... by theshrike79 on Tuesday November 23, 2021 @01:02AM (#29315005)
Every single project I've seen that has used an ORM has had to spend days debugging "why is this simple query pulling half the database" -bugs.
Re:Back to basics: Writing an application using Go and Postg... by henvic on Tuesday November 23, 2021 @05:38AM (#29316345)
2. This is why I'm pushing so hard to keep things with plain SQL at work. So far, another team has experimental with squirrel (a SQL query builder) and it looks sane, but I myself wouldn't introduce not even this.

In my previous company, I was forced to use an outdated forked version of gorm. I'd just do my best to do anything else other than leading with databases there. Running the test suite took minutes, and to run way fewer test cases. It was a nightmare.