View Single Post
Old 07-29-2008, 05:13 PM   #1 (permalink)
Village Idiot
Moderator
Top Contributor 
 
Village Idiot's Avatar
 
Join Date: Sep 2007
Posts: 684
Thanks: 15
Village Idiot is on a distinguished road
Default This is what I have to put up with at work

At work, we are making changes to a really poorly made system. But today, my co-worker found a block of code that exceeds all others in stupidity:
Code:
If oContext.SiteID <> "" And 1=0 Then
                sSQL = "badly written query"
            Else
                sSQL = "badly written query" 
            End If
And later in the script
Code:
If bPrioritizeMine And (CStr(rsTemp.Filter)=sAgentListingFilter) And (1=0) Then
I know theres being prepared for the future, but banking on civil war on the number line is a whole other thing.
__________________
There are two ways to write bug-free code, only the third one works.
Village Idiot is offline  
Reply With Quote