Click here to Skip to main content
15,895,011 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: 5 in a 1 to 10 range Pin
Ian Shlasko17-Apr-09 1:44
Ian Shlasko17-Apr-09 1:44 
GeneralMSDN example [modified] (oops, my bad!) Pin
leppie15-Apr-09 0:46
leppie15-Apr-09 0:46 
GeneralRe: MSDN example Pin
OriginalGriff15-Apr-09 1:55
mveOriginalGriff15-Apr-09 1:55 
GeneralRe: MSDN example (plus incorrect spoiler) [modified] Pin
leppie15-Apr-09 2:15
leppie15-Apr-09 2:15 
GeneralRe: MSDN example (plus spoiler) [modified] Pin
Luc 64801115-Apr-09 3:42
Luc 64801115-Apr-09 3:42 
GeneralRe: MSDN example (plus spoiler) Pin
leppie15-Apr-09 4:23
leppie15-Apr-09 4:23 
GeneralRe: MSDN example Pin
0x3c015-Apr-09 3:20
0x3c015-Apr-09 3:20 
GeneralRe: MSDN example Pin
Luc 64801115-Apr-09 3:41
Luc 64801115-Apr-09 3:41 
Huh?
either you want an exception, so you use Parse; or you don't want one and use TryParse.

Smile | :)
GeneralRe: MSDN example Pin
0x3c015-Apr-09 3:50
0x3c015-Apr-09 3:50 
GeneralRe: MSDN example Pin
leppie15-Apr-09 4:25
leppie15-Apr-09 4:25 
GeneralRe: MSDN example Pin
0x3c015-Apr-09 4:28
0x3c015-Apr-09 4:28 
GeneralRe: MSDN example Pin
leppie15-Apr-09 4:31
leppie15-Apr-09 4:31 
GeneralRe: MSDN example Pin
Luc 64801115-Apr-09 4:42
Luc 64801115-Apr-09 4:42 
GeneralRe: MSDN example Pin
leppie15-Apr-09 4:45
leppie15-Apr-09 4:45 
GeneralRe: MSDN example Pin
leppie15-Apr-09 4:43
leppie15-Apr-09 4:43 
GeneralRe: MSDN example Pin
0x3c015-Apr-09 4:49
0x3c015-Apr-09 4:49 
GeneralRe: MSDN example Pin
leppie15-Apr-09 5:00
leppie15-Apr-09 5:00 
GeneralRe: MSDN example Pin
supercat921-Apr-09 7:52
supercat921-Apr-09 7:52 
JokeRe: MSDN example Pin
Ian Shlasko15-Apr-09 3:44
Ian Shlasko15-Apr-09 3:44 
GeneralRe: MSDN example Pin
Yusuf15-Apr-09 3:58
Yusuf15-Apr-09 3:58 
GeneralRe: MSDN example [modified] (oops, my bad!) Pin
Lutosław15-Apr-09 11:23
Lutosław15-Apr-09 11:23 
GeneralWhy use the 'instanceof' Java operator when you can rethrow an exception? Pin
Juan1R13-Apr-09 3:49
Juan1R13-Apr-09 3:49 
GeneralSince you all like his code so well. Pin
EyeYamFedUp3-Apr-09 5:53
EyeYamFedUp3-Apr-09 5:53 
GeneralRe: Since you all like his code so well. Pin
Yusuf3-Apr-09 6:28
Yusuf3-Apr-09 6:28 
JokeHouse, I need a lobotomy Pin
fabrice.leal3-Apr-09 6:52
fabrice.leal3-Apr-09 6:52 

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.