FWIW, the guy's explanation makes sense. Artificially increasing the prince to $1000 for an erroneous entry is not the most brilliant idea--the system should filter out such entries and instead report an error some other way--but I can well imagine someone programming the system that way because it's easy and they don't realize it could cause serious problems later on. I might use a trick like that myself if I were working on some unimportant scripts, but it's not something appropriate for a production system. Detected errors shouldn't make it into the output in a production system, they should be caught and reported elsewhere.
Wrt filtering, it seems to me he hadn't realized that as-yet-unpublished books would enter the system, so there wasn't even the thought of code to handle that. The system just detected "an error" and this was its (admittedly very poor) way of handling it.
Re: I AM TSCBOOKS
Date: 2009-04-11 07:58 pm (UTC)Wrt filtering, it seems to me he hadn't realized that as-yet-unpublished books would enter the system, so there wasn't even the thought of code to handle that. The system just detected "an error" and this was its (admittedly very poor) way of handling it.