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.
Related Posts
I've been using "Expected Int, but got String" for my type error messages, but I've been wondering if I could do better.
"Expected Int here, but this value has type String" or "This expression requires Int, but the value is String".
Do you have a favourite?
It is *really* hard to find a good screenshot for a CLI tool when users are on a mobile browser.
This is the best I've come up with so far. I'm showing the terminal GUI to show where you'd use the tool.
I'm also trying several standalone screenshots to make it more comprehensible.
You can often estimate the age of a website based on how well it displays on mobile.
All my sites end up with media queries in the CSS for narrow screens. It's so hard to design a single UI that scales from phone to desktop otherwise.