News for hackers. Stuff that matters.
Re:Is ORM still an anti-pattern? by kaba0 on Wednesday June 28, 2023 @02:43AM (#36503152)
> depending on project since it gives you absolute control

Absolute control to hunt down your own bugs, instead of using something that is an industry standard and any competent programmer jumping to your project can be up-to-speed with it instantly..

Re:Is ORM still an anti-pattern? by isbvhodnvemrwvn on Wednesday June 28, 2023 @02:55AM (#36503229)
Very few developers are competent with hibernate, many fewer than with sql. Writeback cache nature of hibernate makes it very complex, order of operations on the app won't match order of operations in the DB.
Re:Is ORM still an anti-pattern? by HelloNurse on Wednesday June 28, 2023 @03:59AM (#36503644)
Even an "industry standard" framework can get in the way. Given the constraints of executing efficient queries; handling errors and timeouts on the application's terms; and enforcing concurrency and transaction handling policies even a "good" ORM can be more a problem than a solution.
Re:Is ORM still an anti-pattern? by kaba0 on Wednesday June 28, 2023 @04:27AM (#36503816)
All of those will be worse off by hand-made “solutions”. Especially that you are not forced to use ORM for everything. Use it for like 90% of your generic db usage, and use its in-built escape hatches for the rest, like native queries or go straight to the db driver if needed.
Re:Is ORM still an anti-pattern? by JanSt on Wednesday June 28, 2023 @07:26AM (#36504922)
In my experience I‘m better off not touching an ORM at all