Click here to Skip to main content
15,922,166 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: 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 
scott_hackett wrote:
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!


This clearly is a 'code smell'. The state of an object should not be littered with local states. This kind of private members often need to be reset when the function starts - a constant source for bugs. Most probably not even the claimed spreed improvement is true.
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 
GeneralRe: Dastardly use of ComboBox Pin
bluesboy847-Mar-07 2:16
bluesboy847-Mar-07 2:16 
GeneralRe: Dastardly use of ComboBox Pin
Dave Kreskowiak2-Mar-07 10:12
mveDave Kreskowiak2-Mar-07 10:12 
GeneralRe: Dastardly use of ComboBox Pin
Duncan Edwards Jones3-Mar-07 0:54
professionalDuncan Edwards Jones3-Mar-07 0:54 
GeneralRe: Dastardly use of ComboBox Pin
kryzchek6-Mar-07 12:39
kryzchek6-Mar-07 12:39 
GeneralBit operations in VBScript Pin
Chris Maunder1-Mar-07 13:03
cofounderChris Maunder1-Mar-07 13:03 
GeneralRe: Bit operations in VBScript Pin
Ed.Poore2-Mar-07 9:06
Ed.Poore2-Mar-07 9:06 
GeneralRe: Bit operations in VBScript Pin
Shog92-Mar-07 9:29
sitebuilderShog92-Mar-07 9:29 
GeneralRe: Bit operations in VBScript Pin
David Rush5-Mar-07 9:59
professionalDavid Rush5-Mar-07 9:59 

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.