Click here to Skip to main content
15,903,203 members

Survey Results

In which order do you test conditionals?   [Edit]

Survey period: 19 Jan 2009 to 26 Jan 2009

Behind every seemingly trival task there are vast schools of philosophy.

OptionVotes% 
Always if (statement is true) then... 42920.32
Always if (statement is false) then...572.70
It specifically depends on the situation1,42167.31
Random.482.27
I"ve never actually thought about it1567.39



 
GeneralRe: Huh? Pin
Jeremy Falcon20-Jan-09 9:45
professionalJeremy Falcon20-Jan-09 9:45 
GeneralRe: Huh? Pin
PIEBALDconsult20-Jan-09 12:32
mvePIEBALDconsult20-Jan-09 12:32 
GeneralRe: Huh? Pin
jordan1322-Jan-09 5:09
jordan1322-Jan-09 5:09 
GeneralUse a CASE tool to do the job right Pin
Stuart Cox19-Jan-09 5:47
Stuart Cox19-Jan-09 5:47 
GeneralRe: Use a CASE tool to do the job right Pin
Dave Sexton19-Jan-09 6:37
Dave Sexton19-Jan-09 6:37 
GeneralRe: Use a CASE tool to do the job right Pin
Stuart Cox19-Jan-09 6:42
Stuart Cox19-Jan-09 6:42 
GeneralRe: Use a CASE tool to do the job right Pin
firegryphon19-Jan-09 13:02
firegryphon19-Jan-09 13:02 
GeneralRe: Use a CASE tool to do the job right Pin
W Balboos, GHB20-Jan-09 1:54
W Balboos, GHB20-Jan-09 1:54 
Depends a lot upon the language's implementation of switch().

If the condition depends upon a string comparison, than you can use the switch with C# but not with C or C++;

Thereupon, I become most perplexed: do I change this particular style with language?
Simplcity vs. consistancy.
Further purplexation: does it matter - for how often would I convert interconvert C++ and C# ?

Now see what you've done to me. I'm afraid to go back to my code and check to see what I've done.














"The difference between genius and stupidity is that genius has its limits." - Albert Einstein

"How do you find out if you're unwanted if everyone you try to ask tells you to stop bothering them and just go away?" - Balboos HaGadol


"It's a sad state of affairs, indeed, when you start reading my tag lines for some sort of enlightenment. Sadder still, if that's where you need to find it." - Balboos HaGadol



GeneralRe: Use a CASE tool to do the job right Pin
Dave Sexton20-Jan-09 2:00
Dave Sexton20-Jan-09 2:00 
GeneralRe: Use a CASE tool to do the job right Pin
W Balboos, GHB20-Jan-09 2:05
W Balboos, GHB20-Jan-09 2:05 
GeneralRe: Use a CASE tool to do the job right Pin
Dave Sexton20-Jan-09 3:02
Dave Sexton20-Jan-09 3:02 
GeneralRe: Use a CASE tool to do the job right Pin
W Balboos, GHB20-Jan-09 3:25
W Balboos, GHB20-Jan-09 3:25 
GeneralRe: Use a CASE tool to do the job right Pin
Dave Sexton20-Jan-09 4:47
Dave Sexton20-Jan-09 4:47 
GeneralMessage Removed Pin
19-Jan-09 5:35
professionalN_tro_P19-Jan-09 5:35 
GeneralRe: Check for Null Pin
WillemM19-Jan-09 5:48
WillemM19-Jan-09 5:48 
GeneralMessage Removed Pin
19-Jan-09 6:07
professionalN_tro_P19-Jan-09 6:07 
GeneralRe: Check for Null Pin
WillemM19-Jan-09 6:23
WillemM19-Jan-09 6:23 
JokeRe: Check for Null Pin
hfrmobile19-Jan-09 22:26
hfrmobile19-Jan-09 22:26 
GeneralRe: Check for Null Pin
Dave Sexton19-Jan-09 6:41
Dave Sexton19-Jan-09 6:41 
GeneralDepends on the situation Pin
Vikram A Punathambekar19-Jan-09 5:28
Vikram A Punathambekar19-Jan-09 5:28 
Generaltry this Pin
JackMcG19-Jan-09 4:18
JackMcG19-Jan-09 4:18 
AnswerRe: try this Pin
ghle19-Jan-09 14:31
ghle19-Jan-09 14:31 
GeneralConditionals Pin
Ed Leighton-Dick19-Jan-09 4:06
Ed Leighton-Dick19-Jan-09 4:06 
GeneralRe: Conditionals Pin
Lee Humphries19-Jan-09 14:42
professionalLee Humphries19-Jan-09 14:42 
GeneralRe: Conditionals Pin
Ian H. Davids19-Jan-09 17:55
Ian H. Davids19-Jan-09 17:55 

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.