|
|
Working where I do, I've found quite a few WTF's myself.
In one of my recent favorites, the programmer had done a query like:
SELECT * FROM CUSTOMERS
Then he went through every single record (in a loop), until he found the
record that matched the value he was looking for, or hit the end of the
file. Moreover, all he needed to return was the name. Honestly, there is
absolutely no excuse for code like that. While he worked here, he generally
maintained his own code, so we didn't run across that stuff until he was
gone. I have to wonder what other surprises lay in store...
In many ways I'm glad he doesn't work here anymore (obviously). But in
other ways, I wish he did, so I could punch him in the face... ;-)
Post a reply to this message
|
|