Click here to Skip to main content
15,867,594 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: This is the least of... Pin
ekolis18-Oct-11 3:25
ekolis18-Oct-11 3:25 
GeneralRe: This is the least of... Pin
BobJanova19-Oct-11 0:19
BobJanova19-Oct-11 0:19 
GeneralRe: This is the least of... Pin
Paul Conrad11-Oct-11 7:50
professionalPaul Conrad11-Oct-11 7:50 
GeneralRe: This is the least of... Pin
RobCroll13-Oct-11 16:28
RobCroll13-Oct-11 16:28 
GeneralRe: This is the least of... Pin
Julien Villers14-Oct-11 3:24
professionalJulien Villers14-Oct-11 3:24 
AnswerRe: This is the least of... Pin
Reiss14-Oct-11 3:45
professionalReiss14-Oct-11 3:45 
GeneralRe: This is the least of... Pin
BobJanova14-Oct-11 5:20
BobJanova14-Oct-11 5:20 
GeneralRe: This is the least of... Pin
cpkilekofp14-Oct-11 5:59
cpkilekofp14-Oct-11 5:59 
SQL
Does any one know of a nice solution so you can debug but ensure that this sort of rubbish doesn't end up going out the door.


Only by using pre-compilation tags like #Const and #if-then-else. Set your constant to one value (say True) while debugging, then set it to False as you wind down debugging. C has a similiar capability with a few more options, and I used to use this facility to allow trace statements to appear during development and disappear at time of release simply by changing the value of a constant.
GeneralRe: This is the least of... Pin
Andy Brummer14-Oct-11 10:22
sitebuilderAndy Brummer14-Oct-11 10:22 
GeneralRe: This is the least of... Pin
Reiss17-Oct-11 0:19
professionalReiss17-Oct-11 0:19 
GeneralRe: This is the least of... Pin
BobJanova17-Oct-11 0:22
BobJanova17-Oct-11 0:22 
GeneralTrue that PinPopular
Arthur F Souza6-Oct-11 4:08
Arthur F Souza6-Oct-11 4:08 
GeneralRe: True that Pin
RobCroll13-Oct-11 16:29
RobCroll13-Oct-11 16:29 
GeneralRe: True that Pin
Firo Atrum Ventus13-Oct-11 16:38
Firo Atrum Ventus13-Oct-11 16:38 
GeneralRe: True that Pin
RobCroll13-Oct-11 17:51
RobCroll13-Oct-11 17:51 
GeneralRe: True that Pin
Firo Atrum Ventus13-Oct-11 19:37
Firo Atrum Ventus13-Oct-11 19:37 
GeneralRe: True that Pin
RobCroll13-Oct-11 21:34
RobCroll13-Oct-11 21:34 
GeneralRe: True that Pin
Firo Atrum Ventus13-Oct-11 21:47
Firo Atrum Ventus13-Oct-11 21:47 
GeneralRe: True that Pin
ii_noname_ii27-Oct-11 2:58
ii_noname_ii27-Oct-11 2:58 
GeneralPhilosophy Major bad Programmer Pin
Frank Towle6-Oct-11 4:01
Frank Towle6-Oct-11 4:01 
GeneralRe: Philosophy Major bad Programmer Pin
Bert Mitton7-Oct-11 3:13
professionalBert Mitton7-Oct-11 3:13 
GeneralRe: Philosophy Major bad Programmer Pin
Frank Towle8-Oct-11 7:56
Frank Towle8-Oct-11 7:56 
GeneralRe: Philosophy Major bad Programmer Pin
Michael Kingsford Gray10-Oct-11 0:58
Michael Kingsford Gray10-Oct-11 0:58 
GeneralRe: Philosophy Major bad Programmer Pin
cpkilekofp10-Oct-11 9:46
cpkilekofp10-Oct-11 9:46 
GeneralRe: Philosophy Major bad Programmer Pin
Bert Mitton10-Oct-11 5:39
professionalBert Mitton10-Oct-11 5:39 

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.