Click here to Skip to main content
15,908,906 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: Internal Error. Pin
Newbie004-Mar-07 1:05
Newbie004-Mar-07 1:05 
GeneralRe: Internal Error. Pin
Newbie004-Mar-07 1:11
Newbie004-Mar-07 1:11 
GeneralRe: Internal Error. Pin
Vasudevan Deepak Kumar4-Mar-07 1:50
Vasudevan Deepak Kumar4-Mar-07 1:50 
GeneralInterclass communication. Pin
Captain See Sharp2-Mar-07 16:51
Captain See Sharp2-Mar-07 16:51 
GeneralRe: Interclass communication. Pin
Vasudevan Deepak Kumar3-Mar-07 9:27
Vasudevan Deepak Kumar3-Mar-07 9:27 
GeneralRe: Interclass communication. Pin
Mark Salsbery5-Mar-07 10:40
Mark Salsbery5-Mar-07 10:40 
GeneralRe: Interclass communication. Pin
Captain See Sharp5-Mar-07 10:50
Captain See Sharp5-Mar-07 10:50 
GeneralBetter efficiency? Pin
scott_hackett2-Mar-07 8:42
scott_hackett2-Mar-07 8:42 
I once worked with a guy who was writing a lot of the DAL code. When it was time to code review some of his stuff, we saw a lot of functions that made a query string, got a DataSet back, extracted the data from the DataSet and returned the extracted data. Basic stuff. However, there were no DataSets declared locally in any of those functions. He had declared a private DataSet class member and used that in all of those functions. The reason... it was too inefficient to declare them locally when you could do it once at the top of the class!

Forehead slaps broke out around the room.
GeneralRe: Better efficiency? Pin
PIEBALDconsult2-Mar-07 9:42
mvePIEBALDconsult2-Mar-07 9:42 
GeneralRe: Better efficiency? Pin
scott_hackett2-Mar-07 10:40
scott_hackett2-Mar-07 10:40 
GeneralRe: Better efficiency? Pin
PIEBALDconsult2-Mar-07 17:18
mvePIEBALDconsult2-Mar-07 17:18 
GeneralRe: Better efficiency? Pin
led mike2-Mar-07 12:14
led mike2-Mar-07 12:14 
GeneralRe: Better efficiency? Pin
Vasudevan Deepak Kumar2-Mar-07 10:55
Vasudevan Deepak Kumar2-Mar-07 10:55 
GeneralRe: Better efficiency? Pin
scott_hackett2-Mar-07 15:39
scott_hackett2-Mar-07 15:39 
GeneralRe: Better efficiency? Pin
Vasudevan Deepak Kumar3-Mar-07 9:27
Vasudevan Deepak Kumar3-Mar-07 9:27 
GeneralRe: Better efficiency? Pin
Virtual Coder3-Mar-07 8:25
Virtual Coder3-Mar-07 8:25 
GeneralThey want us to do WHAT? Pin
Dave Kreskowiak2-Mar-07 6:29
mveDave Kreskowiak2-Mar-07 6:29 
GeneralRe: They want us to do WHAT? Pin
David Stone2-Mar-07 8:15
sitebuilderDavid Stone2-Mar-07 8:15 
GeneralRe: They want us to do WHAT? Pin
Dave Kreskowiak2-Mar-07 10:11
mveDave Kreskowiak2-Mar-07 10:11 
GeneralRe: They want us to do WHAT? Pin
led mike2-Mar-07 12:11
led mike2-Mar-07 12:11 
GeneralRe: They want us to do WHAT? Pin
pbraun3-Mar-07 8:45
pbraun3-Mar-07 8:45 
GeneralRe: They want us to do WHAT? Pin
Sebastian Schneider6-Mar-07 1:12
Sebastian Schneider6-Mar-07 1:12 
GeneralDastardly use of ComboBox Pin
Josh Smith2-Mar-07 6:01
Josh Smith2-Mar-07 6:01 
GeneralRe: Dastardly use of ComboBox Pin
Judah Gabriel Himango2-Mar-07 8:34
sponsorJudah Gabriel Himango2-Mar-07 8:34 
GeneralRe: Dastardly use of ComboBox Pin
Josh Smith2-Mar-07 8:41
Josh Smith2-Mar-07 8:41 

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.