News for hackers. Stuff that matters.
Re:Software engineering topics I changed my mind on by the_cat_kittles on Saturday January 23, 2021 @08:35PM (#25888047)
wise to avoid an opinion on ORMs, otherwise this would devolve rapidly. my opinion is they are potentially useful but i have never worked a job where id rather have an orm
Re:Software engineering topics I changed my mind on by silentsea90 on Saturday January 23, 2021 @09:05PM (#25888276)
I think ORMs are useful only to help provide a direct 1-1 statically typed interface to the underlying db functionality in the language of choice (example java <-> postgresql ORM) ie. select(User.UserId, ...).From(User); etc.

Any more abstraction/generalization and it starts to suck. ORM for java <-> SQL databases (as a whole) are still fine as long as it allows for specialized operations on your sql db choice (say postgres specific functionality not available on mysql), but as ORMs start to get more ambitious by hiding away the actual SQL queries, things go south (looking at you hibernate). Programmers SHOULD know SQL and if they don't, they NEED to learn it. It isn't the ORMs job to abstract it away. That's a recipe for disaster

Re:Software engineering topics I changed my mind on by brightball on Saturday January 23, 2021 @08:52PM (#25888189)
I like them when they simplify repetitive things, require minimal configuration and are easy to get out of your way when you and the database need to have a grown up conversation.
Re:Software engineering topics I changed my mind on by liamliamliam on Saturday January 23, 2021 @09:16PM (#25888353)
You should be using both.