Click here to Skip to main content
11,484,162 members (69,071 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: working with Dates... Pin
Stefan_Lang7-Feb-13 2:40
memberStefan_Lang7-Feb-13 2:40 
JokeRe: working with Dates... Pin
V.8-Feb-13 1:13
memberV.8-Feb-13 1:13 
GeneralRe: working with Dates... Pin
joe_j8-Feb-13 1:17
memberjoe_j8-Feb-13 1:17 
GeneralWhen you aren't even sure WHY you're writing bad code [modified] Pin
philip_cole6-Feb-13 0:26
memberphilip_cole6-Feb-13 0:26 
GeneralRe: When you aren't even sure WHY you're writing bad code Pin
joe_j6-Feb-13 4:05
memberjoe_j6-Feb-13 4:05 
GeneralRe: When you aren't even sure WHY you're writing bad code Pin
s_mon6-Feb-13 4:38
members_mon6-Feb-13 4:38 
GeneralRe: When you aren't even sure WHY you're writing bad code Pin
CHill609-Feb-13 14:26
memberCHill609-Feb-13 14:26 
GeneralRe: When you aren't even sure WHY you're writing bad code Pin
Fred Flams6-Feb-13 22:16
memberFred Flams6-Feb-13 22:16 
Actually I found a piece of code very similar but using a C# switch case

switch(someEnumVariable)
{
  case enumVal1: throw Exception("enumVal1");
  case enumVal2: throw Exception("enumVal2");
  case enumVal3: throw Exception("enumVal3");
  default: throw Exception("Unknown enum value");
}

weirdly enough it looks like some kind of debugging technique..... but again the title of the forum says it all !!!!
GeneralRe: When you aren't even sure WHY you're writing bad code Pin
YvesDaoust6-Feb-13 23:12
memberYvesDaoust6-Feb-13 23:12 
GeneralRe: When you aren't even sure WHY you're writing bad code Pin
RafagaX7-Feb-13 6:51
memberRafagaX7-Feb-13 6:51 
GeneralA world without Ads Pin
joe_j4-Feb-13 21:03
memberjoe_j4-Feb-13 21:03 
GeneralRe: A world without Ads Pin
TheOtherCPian4-Feb-13 21:18
memberTheOtherCPian4-Feb-13 21:18 
GeneralRe: A world without Ads Pin
Shameel6-Feb-13 1:44
memberShameel6-Feb-13 1:44 
GeneralRe: A world without Ads Pin
TheOtherCPian6-Feb-13 2:02
memberTheOtherCPian6-Feb-13 2:02 
GeneralRe: A world without Ads Pin
joe_j10-Feb-13 1:21
memberjoe_j10-Feb-13 1:21 
GeneralRe: A world without Ads Pin
Lloyd Atkinson4-Feb-13 21:43
memberLloyd Atkinson4-Feb-13 21:43 
GeneralRe: A world without Ads Pin
Keith Barrow6-Feb-13 4:36
mentorKeith Barrow6-Feb-13 4:36 
GeneralRe: A world without Ads Pin
Brady Kelly6-Feb-13 1:19
memberBrady Kelly6-Feb-13 1: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 23:23
memberakhil lal2-Feb-13 23: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 1:58
mentorDaveAuld3-Feb-13 1: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 1:59
memberManfred R. Bihy4-Feb-13 1: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 2:40
mentorKeith Barrow4-Feb-13 2: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 20:58
memberjoe_j4-Feb-13 20: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 1:06
memberMarco Bertschi6-Feb-13 1: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 5:02
memberCarlos Fonseca11-Feb-13 5:02 

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.150520.1 | Last Updated 25 May 2015
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid