Click here to Skip to main content
15,891,431 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: It's not the most obvious piece of logic. Pin
Super Lloyd26-Oct-10 4:01
Super Lloyd26-Oct-10 4:01 
JokeRe: It's not the most obvious piece of logic. Pin
Jyothikarthik_N26-Dec-10 19:13
Jyothikarthik_N26-Dec-10 19:13 
GeneralRe: It's not the most obvious piece of logic. Pin
Jeff Connelly26-Oct-10 4:57
Jeff Connelly26-Oct-10 4:57 
GeneralRe: It's not the most obvious piece of logic. Pin
KChandos26-Oct-10 6:39
professionalKChandos26-Oct-10 6:39 
GeneralRe: It's not the most obvious piece of logic. Pin
Pete O'Hanlon26-Oct-10 9:43
mvePete O'Hanlon26-Oct-10 9:43 
GeneralRe: It's not the most obvious piece of logic. Pin
Richard Deeming26-Oct-10 7:54
mveRichard Deeming26-Oct-10 7:54 
GeneralRe: It's not the most obvious piece of logic. Pin
Pete O'Hanlon26-Oct-10 9:44
mvePete O'Hanlon26-Oct-10 9:44 
GeneralRe: It's not the most obvious piece of logic. Pin
FrankLaPiana26-Oct-10 8:44
FrankLaPiana26-Oct-10 8:44 
In Visual C++ MFC, there's a CString. And to check if a CString has values, it's "if (!str.IsEmpty()).

So the QA person, who had a degree from Stevens Institute of Technology, sat there and argued with me for 2 HOURS, and brought it all the way up to the VP, because it wasn't the "obvious way to do the logical operation." Didn't matter at all that is was the way Microsoft implemented it, and we had to use it.
GeneralRe: It's not the most obvious piece of logic. Pin
Keith Barrow26-Oct-10 10:52
professionalKeith Barrow26-Oct-10 10:52 
GeneralRe: It's not the most obvious piece of logic. Pin
Pete O'Hanlon26-Oct-10 11:04
mvePete O'Hanlon26-Oct-10 11:04 
GeneralRe: It's not the most obvious piece of logic. Pin
KP Lee26-Oct-10 13:55
KP Lee26-Oct-10 13:55 
GeneralRe: It's not the most obvious piece of logic. Pin
KP Lee26-Oct-10 11:31
KP Lee26-Oct-10 11:31 
GeneralRe: It's not the most obvious piece of logic. Pin
Dalek Dave26-Oct-10 11:37
professionalDalek Dave26-Oct-10 11:37 
GeneralRe: It's not the most obvious piece of logic. Pin
Stephen Hewitt27-Oct-10 19:02
Stephen Hewitt27-Oct-10 19:02 
GeneralIf Indexing Then Loop Pin
AspDotNetDev22-Oct-10 11:23
protectorAspDotNetDev22-Oct-10 11:23 
GeneralRe: If Indexing Then Loop Pin
HimanshuJoshi22-Oct-10 11:31
HimanshuJoshi22-Oct-10 11:31 
GeneralRe: If Indexing Then Loop Pin
PIEBALDconsult22-Oct-10 16:55
mvePIEBALDconsult22-Oct-10 16:55 
GeneralRe: If Indexing Then Loop Pin
ghle26-Oct-10 1:31
ghle26-Oct-10 1:31 
GeneralStored Procs, Packages, Views...Pah! PinPopular
Richard A. Dalton19-Oct-10 4:16
Richard A. Dalton19-Oct-10 4:16 
GeneralRe: Stored Procs, Packages, Views...Pah! PinPopular
Ray Cassick19-Oct-10 6:48
Ray Cassick19-Oct-10 6:48 
GeneralRe: Stored Procs, Packages, Views...Pah! Pin
Kevin Drzycimski19-Oct-10 7:10
Kevin Drzycimski19-Oct-10 7:10 
GeneralRe: Stored Procs, Packages, Views...Pah! Pin
PoweredByOtgc19-Oct-10 7:19
PoweredByOtgc19-Oct-10 7:19 
GeneralRe: Stored Procs, Packages, Views...Pah! Pin
Jason Christian20-Oct-10 7:00
Jason Christian20-Oct-10 7:00 
GeneralRe: Stored Procs, Packages, Views...Pah! Pin
Richard A. Dalton19-Oct-10 7:30
Richard A. Dalton19-Oct-10 7:30 
GeneralRe: Stored Procs, Packages, Views...Pah! Pin
Andrew Rissing19-Oct-10 7:54
Andrew Rissing19-Oct-10 7:54 

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.