I've read good criticisms of ORMs: objects aren't exactly like DB rows, and they make some queries hard.
I keep coming back to having *some* layer between me and SQL though. ORMs have nicer APIs and I really value automatic schema migration.
Clever vim plugin: given a series of string literals containing an interpolated variables, prompt the user for values and send the query to a real DB! https://www.vim.org/scripts/script.php?script_id=356
(convenient, but I hope it doesn't promote code vulnerable to SQL injection)
The esoteric language BF was designed to be a language where you could write a very small compiler. Self-hosting BF is significantly harder though.
If we designed languages to minimise total LOC for a project plus its compiler, what would end up with?