I use ORMs where they fit well, but I don't treat them as a reason to avoid SQL. I also enjoy PostgreSQL’s quirky time literals, including allballs, which once gave my team a memorable name for happy hour. These practical examples complement my readable sql practices.
I think ORMs aren't bad, but they do get over-used at times.
I consider ORMs great for: Simple updates, CRUD operations, very simple aggregations, managing your migrations.
I see mixed results on: Joins, subqueries.
I see ORM results as bad for generating reports.
My advice is: Don't be afraid of jumping to SQL when you need it.
SELECT 'allballs'::time;
I said SELECT 'allballs'::time; is perhaps my favorite literal that exists within Postgres.
My team used to do happy hour at a venue called allballs because UTC 00:00:00 was about 4 or 5pm depending on daylight savings time.
I noted that NASA is on the list too.
Related: choosing and using postgres, creative sql projects, readable sql practices