Click here to Skip to main content
15,902,886 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: It depends Pin
Tim Groven22-Jan-09 9:54
Tim Groven22-Jan-09 9:54 
GeneralReal programmers don't use conditionals Pin
Ennis Ray Lynch, Jr.20-Jan-09 8:31
Ennis Ray Lynch, Jr.20-Jan-09 8:31 
GeneralDepends... Pin
Ray Cassick20-Jan-09 7:42
Ray Cassick20-Jan-09 7:42 
GeneralRe: Depends... Pin
DrWheetos22-Jan-09 12:10
DrWheetos22-Jan-09 12:10 
GeneralTHEN ? PinPopular
W Balboos, GHB20-Jan-09 2:01
W Balboos, GHB20-Jan-09 2:01 
GeneralRe: THEN ? Pin
PIEBALDconsult20-Jan-09 6:24
mvePIEBALDconsult20-Jan-09 6:24 
GeneralShurely shome mishtake... Pin
Rob Grainger19-Jan-09 22:35
Rob Grainger19-Jan-09 22:35 
GeneralRe: Shurely shome mishtake... Pin
W Balboos, GHB20-Jan-09 1:59
W Balboos, GHB20-Jan-09 1:59 
Which leaves you with:

<br />
if()<br />
  ;<br />
else()<br />
  ;


Saves some typing, but I would personally tire of it after a bit. You might want to, at least, use simple statements in your conditionals.

Just so that they actually (1) make up their mind about something, and (2) do something after they decide.








"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: Shurely shome mishtake... Pin
Rob Grainger20-Jan-09 7:07
Rob Grainger20-Jan-09 7:07 
GeneralIn which order do you test conditionals PinPopular
TomS4519-Jan-09 16:22
TomS4519-Jan-09 16:22 
GeneralRe: In which order do you test conditionals Pin
Jeremy Falcon20-Jan-09 6:33
professionalJeremy Falcon20-Jan-09 6:33 
GeneralHuh? PinPopular
PIEBALDconsult19-Jan-09 13:38
mvePIEBALDconsult19-Jan-09 13:38 
GeneralRe: Huh? Pin
hfrmobile19-Jan-09 22:24
hfrmobile19-Jan-09 22:24 
GeneralRe: Huh? Pin
Hamed Musavi19-Jan-09 23:44
Hamed Musavi19-Jan-09 23:44 
GeneralRe: Huh? Pin
Rob Philpott20-Jan-09 4:47
Rob Philpott20-Jan-09 4:47 
GeneralRe: Huh? Pin
PIEBALDconsult20-Jan-09 6:29
mvePIEBALDconsult20-Jan-09 6:29 
GeneralRe: Huh? PinPopular
Hamed Musavi20-Jan-09 8:08
Hamed Musavi20-Jan-09 8:08 
GeneralRe: Huh? Pin
Jeremy Falcon20-Jan-09 6:40
professionalJeremy Falcon20-Jan-09 6:40 
GeneralRe: Huh? Pin
PIEBALDconsult20-Jan-09 7:57
mvePIEBALDconsult20-Jan-09 7:57 
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 

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.