Click here to Skip to main content
15,899,937 members

Welcome to the Lounge

   

For discussing anything related to a software developer's life but is not for programming questions. Got a programming question?

The Lounge is rated Safe For Work. If you're about to post something inappropriate for a shared office environment, then don't post it. No ads, no abuse, and no programming questions. Trolling, (political, climate, religious or whatever) will result in your account being removed.

 
GeneralRe: Programming Lesson of the Day Pin
englebart26-Jan-17 2:43
professionalenglebart26-Jan-17 2:43 
GeneralRe: Programming Lesson of the Day Pin
den2k8826-Jan-17 21:19
professionalden2k8826-Jan-17 21:19 
GeneralRe: Programming Lesson of the Day Pin
irneb26-Jan-17 1:43
irneb26-Jan-17 1:43 
GeneralRe: Programming Lesson of the Day Pin
den2k8826-Jan-17 21:14
professionalden2k8826-Jan-17 21:14 
GeneralRe: Programming Lesson of the Day Pin
Alister Morton26-Jan-17 3:52
Alister Morton26-Jan-17 3:52 
GeneralRe: Programming Lesson of the Day Pin
Jeremy Falcon26-Jan-17 5:39
professionalJeremy Falcon26-Jan-17 5:39 
GeneralRe: Programming Lesson of the Day Pin
James Curran26-Jan-17 4:07
James Curran26-Jan-17 4:07 
GeneralRe: Programming Lesson of the Day Pin
Nelek25-Jan-17 11:07
protectorNelek25-Jan-17 11:07 
the integer is not a boolean, but the "success" of the value assignment can be taken as a bool

I have had problems with that several times in my career. That's why I got used to put constants in first place.

if (6 = myInt) is going to throw an error in many more cases as the other possibility.
M.D.V. Wink | ;)

If something has a solution... Why do we have to worry about?. If it has no solution... For what reason do we have to worry about?
Help me to understand what I'm saying, and I'll explain it better to you
Rating helpful answers is nice, but saying thanks can be even nicer.

GeneralRe: Programming Lesson of the Day Pin
den2k8825-Jan-17 22:15
professionalden2k8825-Jan-17 22:15 
GeneralRe: Programming Lesson of the Day Pin
Gerry Schmitz26-Jan-17 6:51
mveGerry Schmitz26-Jan-17 6:51 
GeneralRe: Programming Lesson of the Day Pin
den2k8826-Jan-17 21:15
professionalden2k8826-Jan-17 21:15 
GeneralRe: Programming Lesson of the Day Pin
kdmote26-Jan-17 3:41
kdmote26-Jan-17 3:41 
GeneralRe: Programming Lesson of the Day Pin
James Curran26-Jan-17 4:05
James Curran26-Jan-17 4:05 
GeneralRe: Programming Lesson of the Day Pin
kdmote26-Jan-17 6:51
kdmote26-Jan-17 6:51 
GeneralRe: Programming Lesson of the Day Pin
Richard Deeming26-Jan-17 4:27
mveRichard Deeming26-Jan-17 4:27 
GeneralRe: Programming Lesson of the Day Pin
James Curran26-Jan-17 10:04
James Curran26-Jan-17 10:04 
PraiseRe: Programming Lesson of the Day Pin
Slow Eddie26-Jan-17 3:52
professionalSlow Eddie26-Jan-17 3:52 
GeneralRe: Programming Lesson of the Day Pin
den2k8825-Jan-17 6:23
professionalden2k8825-Jan-17 6:23 
GeneralRe: Programming Lesson of the Day Pin
KarstenK25-Jan-17 7:14
mveKarstenK25-Jan-17 7:14 
GeneralRe: Programming Lesson of the Day Pin
den2k8825-Jan-17 22:13
professionalden2k8825-Jan-17 22:13 
GeneralRe: Programming Lesson of the Day Pin
sasadler26-Jan-17 5:24
sasadler26-Jan-17 5:24 
GeneralRe: Programming Lesson of the Day Pin
TheGreatAndPowerfulOz25-Jan-17 7:00
TheGreatAndPowerfulOz25-Jan-17 7:00 
GeneralRe: Programming Lesson of the Day Pin
PIEBALDconsult25-Jan-17 7:56
mvePIEBALDconsult25-Jan-17 7:56 
GeneralRe: Programming Lesson of the Day Pin
den2k8825-Jan-17 22:11
professionalden2k8825-Jan-17 22:11 
GeneralRe: Programming Lesson of the Day Pin
PIEBALDconsult26-Jan-17 2:33
mvePIEBALDconsult26-Jan-17 2:33 

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.


Straw Poll

Were you affected by the geomagnetic storms this past weekend?
Communication disruptions, electrified pipes, random unexplained blue-screens in Windows - the list of effects is terrifying.
  Results   479 votes