Click here to Skip to main content
15,886,806 members

The Weird and The Wonderful

   

The Weird and The Wonderful forum is a place to post Coding Horrors, Worst Practices, and the occasional flash of brilliance.

We all come across code that simply boggles the mind. Lazy kludges, embarrassing mistakes, horrid workarounds and developers just not quite getting it. And then somedays we come across - or write - the truly sublime.

Post your Best, your worst, and your most interesting. But please - no programming questions . This forum is purely for amusement and discussions on code snippets. All actual programming questions will be removed.

 
GeneralRe: 77 Pin
AspDotNetDev19-Feb-13 7:12
protectorAspDotNetDev19-Feb-13 7:12 
GeneralRe: 77 Pin
AspDotNetDev19-Feb-13 7:15
protectorAspDotNetDev19-Feb-13 7:15 
GeneralRe: 77 Pin
Sander Rossel19-Feb-13 7:22
professionalSander Rossel19-Feb-13 7:22 
Generalworking with Dates... Pin
joe_j6-Feb-13 3:03
joe_j6-Feb-13 3:03 
GeneralRe: working with Dates... Pin
Stefan_Lang7-Feb-13 1:40
Stefan_Lang7-Feb-13 1:40 
JokeRe: working with Dates... Pin
V.8-Feb-13 0:13
professionalV.8-Feb-13 0:13 
GeneralRe: working with Dates... Pin
joe_j8-Feb-13 0:17
joe_j8-Feb-13 0:17 
GeneralWhen you aren't even sure WHY you're writing bad code Pin
philip_cole5-Feb-13 23:26
philip_cole5-Feb-13 23:26 
Our old customer service system has some brilliantly bad code in it, but I just had to share this one I spotted this morning.
I think the guy got halfway through and forgot exactly what he was even meant to be fixing, let alone how to fix it.

VB
'ISSUE 2862 ?
If CurrentUser.WorkingSession.Market.TaxInclusiveInCatPrice Then
    'Me.lblTotalOutstanding.Text = String.Format("{0:c}", decOutstanding)
Else
    '?
End If
Me.lblTotalOutstanding.Text = String.Format("{0:c}", decOutstanding)


I just wish we still had our old issue tracker to see what the mystical ISSUE 2862 is...
Phil


modified 6-Feb-13 5:50am.

GeneralRe: When you aren't even sure WHY you're writing bad code Pin
joe_j6-Feb-13 3:05
joe_j6-Feb-13 3:05 
GeneralRe: When you aren't even sure WHY you're writing bad code Pin
StM0n6-Feb-13 3:38
StM0n6-Feb-13 3:38 
GeneralRe: When you aren't even sure WHY you're writing bad code Pin
CHill609-Feb-13 13:26
mveCHill609-Feb-13 13:26 
GeneralRe: When you aren't even sure WHY you're writing bad code Pin
Fred Flams6-Feb-13 21:16
Fred Flams6-Feb-13 21:16 
GeneralRe: When you aren't even sure WHY you're writing bad code Pin
YvesDaoust6-Feb-13 22:12
YvesDaoust6-Feb-13 22:12 
GeneralRe: When you aren't even sure WHY you're writing bad code Pin
RafagaX7-Feb-13 5:51
professionalRafagaX7-Feb-13 5:51 
GeneralA world without Ads Pin
joe_j4-Feb-13 20:03
joe_j4-Feb-13 20:03 
GeneralRe: A world without Ads Pin
BotCar4-Feb-13 20:18
BotCar4-Feb-13 20:18 
GeneralRe: A world without Ads Pin
Shameel6-Feb-13 0:44
professionalShameel6-Feb-13 0:44 
GeneralRe: A world without Ads Pin
BotCar6-Feb-13 1:02
BotCar6-Feb-13 1:02 
GeneralRe: A world without Ads Pin
joe_j10-Feb-13 0:21
joe_j10-Feb-13 0:21 
GeneralRe: A world without Ads Pin
LloydA1114-Feb-13 20:43
LloydA1114-Feb-13 20:43 
GeneralRe: A world without Ads Pin
Keith Barrow6-Feb-13 3:36
professionalKeith Barrow6-Feb-13 3:36 
GeneralRe: A world without Ads Pin
Brady Kelly6-Feb-13 0:19
Brady Kelly6-Feb-13 0:19 
GeneralHow can i list Country wise banks list in my new web app with out storing the list in db Pin
akhil lal2-Feb-13 22:23
akhil lal2-Feb-13 22:23 
GeneralRe: How can i list Country wise banks list in my new web app with out storing the list in db Pin
DaveAuld3-Feb-13 0:58
professionalDaveAuld3-Feb-13 0:58 
GeneralRe: How can i list Country wise banks list in my new web app with out storing the list in db Pin
Manfred Rudolf Bihy4-Feb-13 0:59
professionalManfred Rudolf Bihy4-Feb-13 0:59 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.