by alephu5 · 5y ago · 0 comments
Another advantage is that you type-check your queries, whereas with pure SQL you can accidentally load a number into a string variable and crash the application.
Because of this I prefer very light ORMs that abstract almost nothing. Those that provide model definitions, automatic migrations and a one-one SQL mapping.
An IDE that understood SQL would probably mitigate almost all opposition and yet nobody came up with one after all these years. So I guess the standard DSL defense doesn't really doesn't work.
All right, point taken, I'll take my downvotes and go home :) I don't use an IDE and most people I work with don't either. But this is a useful reminder that the world can be very different outside of one's bubble.
Any particular recommendations? I tried hibernate in java and was put off by complexity.