by crescentfresh · 5y ago · 0 comments
What's wrong with strings? The argument in the article is that they cannot be compile-time checked, but I'm confused as to the solution to that problem ("you need to write exhaustive test coverage to verify them"). Is this saying that if they weren't strings you wouldn't need test coverage?
What did stand out for me from that section was:
This is fine for simple queries, but provides little in the way of confidence that queries actually work.
Why not just paste the string first to psql to make sure the query actually works?