by semicolon_storm · 3y ago · 0 comments
One fun case I witnessed involved a junior developer adding the desired/resulting SQL as a comment to every complicated Rails AREL queries, so that people could know what the query was doing.
Then, after seeing that, one of the tech leads determined that EVERY query should have SQL on top of it, for consistency, even things like User.all had the `SELECT * FROM users` on top.
In hindsight it's funny but it was a terrible team and a terrible software.
Go shove your views up yours, you maniac!
/s, except for way many more ORM lovers than you think.
I understand the sentiment but there is not anything inherently wrong with a stored procedure. If they came out today we'd probably call it edge computing.