Click here to Skip to main content
15,902,636 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.

 
Generalduplicate variable names seperated by scope Pin
Jason De Arte5-Mar-07 13:08
Jason De Arte5-Mar-07 13:08 
GeneralRe: duplicate variable names seperated by scope Pin
bluesboy847-Mar-07 1:06
bluesboy847-Mar-07 1:06 
GeneralUnnecessary try / catch block Pin
David Rush5-Mar-07 10:17
professionalDavid Rush5-Mar-07 10:17 
GeneralRe: Unnecessary try / catch block Pin
PIEBALDconsult5-Mar-07 12:52
mvePIEBALDconsult5-Mar-07 12:52 
GeneralRe: Unnecessary try / catch block Pin
DavidNohejl5-Mar-07 13:07
DavidNohejl5-Mar-07 13:07 
GeneralRe: Unnecessary try / catch block Pin
Ed.Poore5-Mar-07 21:36
Ed.Poore5-Mar-07 21:36 
GeneralRe: Unnecessary try / catch block Pin
David Rush6-Mar-07 9:26
professionalDavid Rush6-Mar-07 9:26 
GeneralRe: Unnecessary try / catch block Pin
GWB@s1c6-Mar-07 7:58
GWB@s1c6-Mar-07 7:58 
I once worked with a programmer who wrote code like that. He yelled at me (in front of the big boss) for getting rid of it. It turns out he wasn't aware that .Net puts a stack trace in Exception objects! The real lesson that *I* learned is "old habits die hard"; he was still using techniques from back in the C++ / COM days.
GeneralRe: Unnecessary try / catch block Pin
David Rush6-Mar-07 9:43
professionalDavid Rush6-Mar-07 9:43 
GeneralRe: Unnecessary try / catch block Pin
Brian R6-Mar-07 13:33
Brian R6-Mar-07 13:33 
GeneralUse Appropriate Development Tools Pin
Brian Leach5-Mar-07 10:16
Brian Leach5-Mar-07 10:16 
GeneralRe: Use Appropriate Development Tools Pin
Chris Losinger5-Mar-07 11:25
professionalChris Losinger5-Mar-07 11:25 
GeneralRe: Use Appropriate Development Tools [modified] Pin
PIEBALDconsult5-Mar-07 12:54
mvePIEBALDconsult5-Mar-07 12:54 
GeneralRe: Use Appropriate Development Tools Pin
Dan Neely6-Mar-07 2:18
Dan Neely6-Mar-07 2:18 
GeneralEver experienced this Pin
Rama Krishna Vavilala5-Mar-07 9:37
Rama Krishna Vavilala5-Mar-07 9:37 
GeneralRe: Ever experienced this Pin
pbraun5-Mar-07 10:00
pbraun5-Mar-07 10:00 
GeneralRe: Ever experienced this Pin
Christian Graus6-Mar-07 0:09
protectorChristian Graus6-Mar-07 0:09 
GeneralRe: Ever experienced this Pin
David Rush6-Mar-07 9:59
professionalDavid Rush6-Mar-07 9:59 
GeneralVB.NET Pin
Shog94-Mar-07 11:51
sitebuilderShog94-Mar-07 11:51 
GeneralRe: VB.NET Pin
#1234-Mar-07 12:56
#1234-Mar-07 12:56 
GeneralRe: VB.NET Pin
Shog94-Mar-07 14:24
sitebuilderShog94-Mar-07 14:24 
GeneralRe: VB.NET Pin
#1234-Mar-07 14:47
#1234-Mar-07 14:47 
GeneralRe: VB.NET Pin
Shog94-Mar-07 15:22
sitebuilderShog94-Mar-07 15:22 
GeneralRe: VB.NET Pin
Christian Graus5-Mar-07 1:13
protectorChristian Graus5-Mar-07 1:13 
GeneralRe: VB.NET Pin
Shog95-Mar-07 3:25
sitebuilderShog95-Mar-07 3:25 

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.