Click here to Skip to main content
15,909,953 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
ghle19-Jan-09 14:39
ghle19-Jan-09 14:39 
GeneralRe: It depends Pin
tsdragon19-Jan-09 23:56
tsdragon19-Jan-09 23:56 
AnswerIs this a trick question? Pin
Michael Gage19-Jan-09 2:02
Michael Gage19-Jan-09 2:02 
GeneralRe: Is this a trick question? Pin
peterchen19-Jan-09 2:34
peterchen19-Jan-09 2:34 
GeneralAlways FALSE first Pin
Paul Darlington19-Jan-09 1:56
Paul Darlington19-Jan-09 1:56 
GeneralRe: Always FALSE first Pin
MatrixDud19-Jan-09 5:20
MatrixDud19-Jan-09 5:20 
GeneralRe: Always FALSE first Pin
Paul Darlington19-Jan-09 5:25
Paul Darlington19-Jan-09 5:25 
GeneralRe: Always FALSE first Pin
MatrixDud20-Jan-09 11:14
MatrixDud20-Jan-09 11:14 
But of course that only pertains to the Microsoft BOOL variable and not bool in C++. C did not actually have a bool value defined until C99. BOOL is actually an INT (sizeof(BOOL) = 4 or 8 on x64) whereas bool is a byte (sizeof(bool) = 1). Most languages use a built in type of bool that is one byte and only capable of being true or false (1 or 0). The proper use of BOOL is to test if it is non-zero for TRUE with most functions that return BOOL. Some functions that return BOOL will actually return more than just 2 possible answers (ie: 0 for success or a value representing a return or error code).
GeneralRe: Always FALSE first Pin
PIEBALDconsult20-Jan-09 8:03
mvePIEBALDconsult20-Jan-09 8:03 
JokeOut of ideas for surveys are we? Pin
PedroMC19-Jan-09 1:35
PedroMC19-Jan-09 1:35 
GeneralAnd what about? Pin
ittay ophir19-Jan-09 0:17
ittay ophir19-Jan-09 0:17 
GeneralRe: And what about? PinPopular
Fabian Tamp19-Jan-09 0:44
Fabian Tamp19-Jan-09 0:44 
GeneralRe: And what about? Pin
Gary Wheeler19-Jan-09 0:57
Gary Wheeler19-Jan-09 0:57 
GeneralRe: And what about? Pin
Fatbuddha 119-Jan-09 1:01
Fatbuddha 119-Jan-09 1:01 
GeneralRe: And what about? Pin
Corporal Agarn19-Jan-09 1:18
professionalCorporal Agarn19-Jan-09 1:18 
GeneralRe: And what about? Pin
Bartosz Bien19-Jan-09 1:38
Bartosz Bien19-Jan-09 1:38 
GeneralRe: And what about? Pin
MatrixDud19-Jan-09 5:27
MatrixDud19-Jan-09 5:27 
GeneralWhat does it mean ? Pin
MarcelloTurnbull18-Jan-09 23:47
MarcelloTurnbull18-Jan-09 23:47 
GeneralFree time Pin
Paul Watson19-Jan-09 2:25
sitebuilderPaul Watson19-Jan-09 2:25 
GeneralRe: Free time Pin
Paul Watson19-Jan-09 3:08
sitebuilderPaul Watson19-Jan-09 3:08 
AnswerRe: Free time Pin
MarcelloTurnbull19-Jan-09 3:38
MarcelloTurnbull19-Jan-09 3:38 
Answerhas to read like english Pin
clearbrian118-Jan-09 23:14
clearbrian118-Jan-09 23:14 
GeneralRe: has to read like english Pin
MatrixDud19-Jan-09 5:14
MatrixDud19-Jan-09 5:14 
GeneralDepends sometimes Pin
hairy_hats18-Jan-09 21:54
hairy_hats18-Jan-09 21:54 
Generaldepends Pin
Luc Pattyn18-Jan-09 21:01
sitebuilderLuc Pattyn18-Jan-09 21:01 

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.