Click here to Skip to main content
15,889,595 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: False selection... Pin
waldemar.sauer@aitmetis.com12-Oct-10 8:44
waldemar.sauer@aitmetis.com12-Oct-10 8:44 
GeneralRe: False selection... Pin
lordofawesome12-Oct-10 8:49
lordofawesome12-Oct-10 8:49 
GeneralRe: False selection... Pin
waldemar.sauer@aitmetis.com12-Oct-10 9:06
waldemar.sauer@aitmetis.com12-Oct-10 9:06 
GeneralRe: False selection... Pin
lordofawesome12-Oct-10 9:16
lordofawesome12-Oct-10 9:16 
GeneralRe: False selection... Pin
calamus7712-Oct-10 17:55
calamus7712-Oct-10 17:55 
GeneralRe: False selection... Pin
lordofawesome12-Oct-10 23:24
lordofawesome12-Oct-10 23:24 
GeneralRe: False selection... Pin
calamus7714-Oct-10 15:14
calamus7714-Oct-10 15:14 
GeneralRe: False selection... Pin
werD13-Oct-10 3:54
werD13-Oct-10 3:54 
the code you wrote evaluates every possible scenario and then returns a value.. The original code disqualifies the rest of the code and returns rather than proceeding. What if isEqualDepth takes 3 seconds to run.. every method call would take 3 seconds even when they obviously didnt match after the first if

Running every if and returning a combined boolean makes sense for validation but the logic doesnt translate to this situation at all..
DrewG MCSD .Net

GeneralRe: False selection... Pin
lordofawesome13-Oct-10 6:42
lordofawesome13-Oct-10 6:42 
GeneralRe: False selection... Pin
Member 451724015-Oct-10 2:39
Member 451724015-Oct-10 2:39 
GeneralRe: False selection... Pin
lordofawesome15-Oct-10 4:17
lordofawesome15-Oct-10 4:17 
GeneralRe: False selection... Pin
supercat911-Oct-10 8:30
supercat911-Oct-10 8:30 
GeneralRe: False selection... Pin
Phil J Pearson11-Oct-10 1:50
Phil J Pearson11-Oct-10 1:50 
GeneralRe: False selection... Pin
David Skelly11-Oct-10 1:53
David Skelly11-Oct-10 1:53 
GeneralRe: False selection... Pin
lordofawesome11-Oct-10 4:28
lordofawesome11-Oct-10 4:28 
GeneralRe: False selection... Pin
PIEBALDconsult11-Oct-10 15:44
mvePIEBALDconsult11-Oct-10 15:44 
GeneralRe: False selection... Pin
ghle12-Oct-10 16:09
ghle12-Oct-10 16:09 
GeneralRe: False selection... Pin
ghle12-Oct-10 16:28
ghle12-Oct-10 16:28 
GeneralRe: False selection... Pin
_Erik_15-Oct-10 5:19
_Erik_15-Oct-10 5:19 
GeneralRe: False selection... Pin
ghle17-Oct-10 14:45
ghle17-Oct-10 14:45 
GeneralRe: False selection... [modified] Pin
_Erik_18-Oct-10 2:06
_Erik_18-Oct-10 2:06 
GeneralRe: False selection... Pin
ghle19-Oct-10 1:36
ghle19-Oct-10 1:36 
GeneralRe: False selection... [modified] Pin
_Erik_19-Oct-10 2:10
_Erik_19-Oct-10 2:10 
GeneralRe: False selection... Pin
AspDotNetDev11-Oct-10 6:38
protectorAspDotNetDev11-Oct-10 6:38 
GeneralRe: False selection... Pin
OriginalGriff11-Oct-10 8:00
mveOriginalGriff11-Oct-10 8:00 

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.