Quote:
Originally Posted by ibbo
This is why MySQL sucks.
Bad workmen blame the tools.
|
Bad workmen choose bad tools.
Quote:
Originally Posted by ibbo
If you scrutinize any input (especially if its going to your DB) then you can catch it and make it friendly.
|
The type you spend writing code to scrutinize any and all user input (not a small task) adds no value to your clients, it's just plumbing. Choosing a tool that forces you to spend a great deal of time doing something that adds no value to the project when you could simply choose proper tools from the start is the mark of the bad workmen you're bringing up.
There are many situations where some characters like ' or - are valid and appropriate. You can't just block any input of them, O'Leary, in-the-woods, so your "scrutinize user input" module either has to be very smart, or still leaves holes open.
On the other hand, when you can just save and precompile the SQL in the database and pass only parameter values who can't change the meaning of the SQL code, all of a sudden you don't have to spend weeks writing code to scrutinize your user input, you can just let your data rules govern what's acceptable. And charge your client a fair price, instead of charging them to buy a screw driver and forge a hammer out of it.
|