3 ms·
hehe, I'm a bit of a contrarian when it comes to modern tech. I don't see the need for Docker most of the time. I struggle to understand why people use ORMs ins
by marcus_holmes 5y ago
hehe, I'm a bit of a contrarian when it comes to modern tech. I don't see the need for Docker most of the time. I struggle to understand why people use ORMs instead of learning some SQL. I don't agree with the massive use of third-party libraries in most modern development (this is a security nightmare waiting to happen). So yeah, there's quite a few boring things that everybody gets wrong, but I doubt I'm going to be able to convince them of that ;)
- rini17 5y agoMost of the time it is not about SQL itself but the interface. Like, since you avoid ORM, you never ran into a mismatch between parameters/query results in prepared SQL statement vs. surrounding code? Isn't that a security risk too?
- marcus_holmes 5y agonot so far, no. I usually create a view as a compound result type for functions, and match the struct for the results to the view. So the SQL compiler tells me if I got a return type wrong, and if I need to change the struct then I change the view to match, and the compiler tells me all the other places I need to change.