Click here to Skip to main content
11,566,785 members (50,220 online)

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, embarrasing 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: IF-free codes Pin
Dave Kreskowiak5-Mar-13 3:53
mvpDave Kreskowiak5-Mar-13 3:53 
GeneralSpurious use of goto... Pin
Rob Grainger7-Feb-13 1:46
memberRob Grainger7-Feb-13 1:46 
GeneralRe: Spurious use of goto... Pin
joe_j7-Feb-13 23:37
memberjoe_j7-Feb-13 23:37 
General77 Pin
AspDotNetDev6-Feb-13 12:43
protectorAspDotNetDev6-Feb-13 12:43 
GeneralRe: 77 Pin
Marco Bertschi16-Feb-13 5:17
memberMarco Bertschi16-Feb-13 5:17 
GeneralRe: 77 Pin
Naerling18-Feb-13 20:48
memberNaerling18-Feb-13 20:48 
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
Naerling19-Feb-13 7:22
memberNaerling19-Feb-13 7:22 
Generalworking with Dates... Pin
joe_j6-Feb-13 3:03
memberjoe_j6-Feb-13 3:03 
GeneralRe: working with Dates... Pin
Stefan_Lang7-Feb-13 1:40
memberStefan_Lang7-Feb-13 1:40 
JokeRe: working with Dates... Pin
V.8-Feb-13 0:13
memberV.8-Feb-13 0:13 
GeneralRe: working with Dates... Pin
joe_j8-Feb-13 0:17
memberjoe_j8-Feb-13 0:17 
GeneralWhen you aren't even sure WHY you're writing bad code Pin
philip_cole5-Feb-13 23:26
memberphilip_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.

'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
memberjoe_j6-Feb-13 3:05 
GeneralRe: When you aren't even sure WHY you're writing bad code Pin
s_mon6-Feb-13 3:38
members_mon6-Feb-13 3:38 
GeneralRe: When you aren't even sure WHY you're writing bad code Pin
CHill609-Feb-13 13:26
memberCHill609-Feb-13 13:26 
GeneralRe: When you aren't even sure WHY you're writing bad code Pin
Fred Flams6-Feb-13 21:16
memberFred Flams6-Feb-13 21:16 
GeneralRe: When you aren't even sure WHY you're writing bad code Pin
YvesDaoust6-Feb-13 22:12
memberYvesDaoust6-Feb-13 22:12 
GeneralRe: When you aren't even sure WHY you're writing bad code Pin
RafagaX7-Feb-13 5:51
memberRafagaX7-Feb-13 5:51 
GeneralA world without Ads Pin
joe_j4-Feb-13 20:03
memberjoe_j4-Feb-13 20:03 
GeneralRe: A world without Ads Pin
TheOtherCPian4-Feb-13 20:18
memberTheOtherCPian4-Feb-13 20:18 
GeneralRe: A world without Ads Pin
Shameel6-Feb-13 0:44
memberShameel6-Feb-13 0:44 
GeneralRe: A world without Ads Pin
TheOtherCPian6-Feb-13 1:02
memberTheOtherCPian6-Feb-13 1:02 
GeneralRe: A world without Ads Pin
joe_j10-Feb-13 0:21
memberjoe_j10-Feb-13 0:21 
GeneralRe: A world without Ads Pin
Lloyd Atkinson4-Feb-13 20:43
memberLloyd Atkinson4-Feb-13 20:43 
GeneralRe: A world without Ads Pin
Keith Barrow6-Feb-13 3:36
mentorKeith Barrow6-Feb-13 3:36 
GeneralRe: A world without Ads Pin
Brady Kelly6-Feb-13 0:19
memberBrady 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
memberakhil 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
mentorDaveAuld3-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 R. Bihy4-Feb-13 0:59
memberManfred R. Bihy4-Feb-13 0:59 
GeneralRe: How can i list Country wise banks list in my new web app with out storing the list in db Pin
Keith Barrow4-Feb-13 1:40
mentorKeith Barrow4-Feb-13 1:40 
GeneralRe: How can i list Country wise banks list in my new web app with out storing the list in db Pin
joe_j4-Feb-13 19:58
memberjoe_j4-Feb-13 19:58 
GeneralRe: How can i list Country wise banks list in my new web app with out storing the list in db Pin
Marco Bertschi6-Feb-13 0:06
memberMarco Bertschi6-Feb-13 0:06 
GeneralRe: How can i list Country wise banks list in my new web app with out storing the list in db Pin
Carlos Fonseca11-Feb-13 4:02
memberCarlos Fonseca11-Feb-13 4:02 
QuestionDomain vs Technology Pin
Ranjan.D2-Feb-13 6:15
memberRanjan.D2-Feb-13 6:15 
AnswerRe: Domain vs Technology Pin
Brisingr Aerowing2-Feb-13 7:33
memberBrisingr Aerowing2-Feb-13 7:33 
GeneralRe: Domain vs Technology Pin
Ranjan.D2-Feb-13 11:07
memberRanjan.D2-Feb-13 11:07 
GeneralRe: Domain vs Technology Pin
SoMad2-Feb-13 11:31
memberSoMad2-Feb-13 11:31 
GeneralRe: Domain vs Technology Pin
Ranjan.D2-Feb-13 11:38
memberRanjan.D2-Feb-13 11:38 
AnswerRe: Domain vs Technology Pin
devvvy2-Feb-13 23:28
memberdevvvy2-Feb-13 23:28 
GeneralRe: Domain vs Technology Pin
Ranjan.D3-Feb-13 4:12
memberRanjan.D3-Feb-13 4:12 
GeneralRe: Domain vs Technology Pin
devvvy3-Feb-13 16:08
memberdevvvy3-Feb-13 16:08 
GeneralRe: Domain vs Technology Pin
Ranjan.D3-Feb-13 16:19
memberRanjan.D3-Feb-13 16:19 
AnswerRe: Domain vs Technology Pin
Marco Bertschi6-Feb-13 0:08
memberMarco Bertschi6-Feb-13 0:08 
GeneralRe: Domain vs Technology Pin
Ranjan.D6-Feb-13 2:44
memberRanjan.D6-Feb-13 2:44 
GeneralThe best lambda expression I ever saw Pin
ProgramFOX2-Feb-13 5:55
member ProgramFOX2-Feb-13 5:55 
GeneralRe: The best lambda expression I ever saw Pin
Brisingr Aerowing2-Feb-13 7:32
memberBrisingr Aerowing2-Feb-13 7:32 
GeneralRe: The best lambda expression I ever saw Pin
joe_j4-Feb-13 20:00
memberjoe_j4-Feb-13 20:00 
GeneralRe: The best lambda expression I ever saw Pin
ProgramFOX5-Feb-13 6:37
member ProgramFOX5-Feb-13 6:37 

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

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


Advertise | Privacy | Mobile
Web03 | 2.8.150624.2 | Last Updated 30 Jun 2015
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid