Click here to Skip to main content
15,920,704 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: Variation of bad boolean check. Pin
Pete O'Hanlon19-Mar-07 1:35
mvePete O'Hanlon19-Mar-07 1:35 
GeneralRe: Variation of bad boolean check. Pin
Marko B.L.19-Mar-07 1:37
Marko B.L.19-Mar-07 1:37 
GeneralRe: Variation of bad boolean check. Pin
David Crow19-Mar-07 3:50
David Crow19-Mar-07 3:50 
GeneralRe: Variation of bad boolean check. Pin
Pete O'Hanlon19-Mar-07 4:08
mvePete O'Hanlon19-Mar-07 4:08 
GeneralRe: Variation of bad boolean check. Pin
Hal Angseesing28-Mar-07 6:19
professionalHal Angseesing28-Mar-07 6:19 
GeneralRe: Variation of bad boolean check. Pin
kakan19-Mar-07 23:01
professionalkakan19-Mar-07 23:01 
GeneralRe: Variation of bad boolean check. Pin
jhwurmbach21-Mar-07 4:00
jhwurmbach21-Mar-07 4:00 
GeneralRe: Variation of bad boolean check. Pin
kakan21-Mar-07 5:04
professionalkakan21-Mar-07 5:04 
I would do it the same way you do.
I had two reasons for responding the way I did:
1.
I wanted the smallest possible alteration to the original code.
2.
In the past, I have given "smartcoded" examples and has been flamed for it, with comments like "unredable" and "impossible to understand". (My response that the compiler could handle my source code yielded heaps of "1" votes.)
So now I try to keep my code examples as easy to understand as possible.

Alcohol. The cause of, and the solution to, all of life's problems - Homer Simpson

GeneralRe: Variation of bad boolean check. Pin
Pete O'Hanlon21-Mar-07 5:28
mvePete O'Hanlon21-Mar-07 5:28 
GeneralRe: Variation of bad boolean check. Pin
kakan21-Mar-07 20:04
professionalkakan21-Mar-07 20:04 
GeneralRe: Variation of bad boolean check. Pin
Emilio Garavaglia22-Mar-07 22:14
Emilio Garavaglia22-Mar-07 22:14 
GeneralRe: Variation of bad boolean check. Pin
Pete O'Hanlon23-Mar-07 0:16
mvePete O'Hanlon23-Mar-07 0:16 
GeneralASP.NET Server-side text change notification? Pin
varnk15-Mar-07 3:04
varnk15-Mar-07 3:04 
GeneralRe: ASP.NET Server-side text change notification? Pin
N a v a n e e t h19-Mar-07 22:44
N a v a n e e t h19-Mar-07 22:44 
GeneralWhat you say is what you code Pin
Rage14-Mar-07 7:47
professionalRage14-Mar-07 7:47 
GeneralRe: What you say is what you code Pin
PIEBALDconsult14-Mar-07 10:38
mvePIEBALDconsult14-Mar-07 10:38 
GeneralRe: What you say is what you code Pin
Captain See Sharp14-Mar-07 13:10
Captain See Sharp14-Mar-07 13:10 
GeneralRe: What you say is what you code Pin
Dan Neely15-Mar-07 2:23
Dan Neely15-Mar-07 2:23 
GeneralRe: What you say is what you code Pin
Russell Jones16-Mar-07 5:19
Russell Jones16-Mar-07 5:19 
GeneralRe: What you say is what you code Pin
Ed.Poore16-Mar-07 6:27
Ed.Poore16-Mar-07 6:27 
GeneralRe: What you say is what you code Pin
Captain See Sharp16-Mar-07 7:18
Captain See Sharp16-Mar-07 7:18 
GeneralRe: What you say is what you code Pin
Russell Jones16-Mar-07 10:54
Russell Jones16-Mar-07 10:54 
GeneralRe: What you say is what you code Pin
Muammar©16-Mar-07 9:05
Muammar©16-Mar-07 9:05 
GeneralRe: What you say is what you code Pin
John R. Shaw14-Mar-07 16:59
John R. Shaw14-Mar-07 16:59 
GeneralNo QA for language in GUI [modified] Pin
Marcus J. Smith14-Mar-07 6:27
professionalMarcus J. Smith14-Mar-07 6:27 

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.