POV-Ray : Newsgroups : povray.off-topic : The Daily WTF [again] : Re: The Daily WTF [again] Server Time
15 May 2024 23:08:16 EDT (-0400)
  Re: The Daily WTF [again]  
From: Jeremy M  Praay
Date: 11 Feb 2008 13:12:48
Message: <47b09020@news.povray.org>
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

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.