Click here to Skip to main content
15,881,281 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: The learning rush Pin
Gerry Schmitz14-Nov-20 3:52
mveGerry Schmitz14-Nov-20 3:52 
GeneralRe: The learning rush Pin
honey the codewitch14-Nov-20 4:08
mvahoney the codewitch14-Nov-20 4:08 
GeneralRe: The learning rush Pin
Harrison Pratt16-Nov-20 10:19
professionalHarrison Pratt16-Nov-20 10:19 
GeneralRe: The learning rush Pin
Sander Rossel14-Nov-20 4:00
professionalSander Rossel14-Nov-20 4:00 
GeneralRe: The learning rush Pin
honey the codewitch14-Nov-20 4:07
mvahoney the codewitch14-Nov-20 4:07 
GeneralRe: The learning rush Pin
Sander Rossel14-Nov-20 5:10
professionalSander Rossel14-Nov-20 5:10 
GeneralRe: The learning rush Pin
honey the codewitch14-Nov-20 5:19
mvahoney the codewitch14-Nov-20 5:19 
GeneralRe: The learning rush Pin
Sander Rossel14-Nov-20 12:55
professionalSander Rossel14-Nov-20 12:55 
I just found an abomination, purely by coincidence, that had me confused for a moment.
C#
if (something &&
    somethingElse)
    DoStuff();
else
    DoOtherStuff();
The indentation doesn't help here!
Needless to say, I wanted to add braces and added them above somethingElse, which broke the code Sigh | :sigh:

The point you make has actually happened to me before.
I inherited someone else's code and I had to make a change.
For some reason, the original programmer added two lines with the same indentation (and VS didn't change it back for me, I think this was VS2010).
I added a (conditional) third, but to my surprise it was always executed!
Took me a while to find that one D'Oh! | :doh:

GeneralRe: The learning rush Pin
honey the codewitch14-Nov-20 13:05
mvahoney the codewitch14-Nov-20 13:05 
GeneralRe: The learning rush Pin
Sander Rossel14-Nov-20 13:42
professionalSander Rossel14-Nov-20 13:42 
GeneralRe: The learning rush Pin
honey the codewitch14-Nov-20 14:07
mvahoney the codewitch14-Nov-20 14:07 
GeneralRe: The learning rush Pin
Sander Rossel15-Nov-20 0:23
professionalSander Rossel15-Nov-20 0:23 
GeneralRe: The learning rush Pin
honey the codewitch15-Nov-20 0:32
mvahoney the codewitch15-Nov-20 0:32 
GeneralRe: The learning rush Pin
Sander Rossel15-Nov-20 0:45
professionalSander Rossel15-Nov-20 0:45 
GeneralRe: The learning rush Pin
Greg Utas15-Nov-20 1:42
professionalGreg Utas15-Nov-20 1:42 
GeneralRe: The learning rush Pin
Sander Rossel15-Nov-20 2:04
professionalSander Rossel15-Nov-20 2:04 
GeneralRe: The learning rush Pin
honey the codewitch15-Nov-20 3:40
mvahoney the codewitch15-Nov-20 3:40 
GeneralRe: The learning rush Pin
honey the codewitch15-Nov-20 3:32
mvahoney the codewitch15-Nov-20 3:32 
GeneralRe: The learning rush Pin
Nelek15-Nov-20 1:47
protectorNelek15-Nov-20 1:47 
GeneralRe: The learning rush Pin
honey the codewitch15-Nov-20 3:33
mvahoney the codewitch15-Nov-20 3:33 
GeneralRe: The learning rush Pin
Nelek15-Nov-20 5:25
protectorNelek15-Nov-20 5:25 
GeneralRe: The learning rush Pin
Pete Kelley17-Nov-20 2:19
Pete Kelley17-Nov-20 2:19 
GeneralRe: The learning rush Pin
Sander Rossel17-Nov-20 9:10
professionalSander Rossel17-Nov-20 9:10 
GeneralRe: The learning rush Pin
Member 1298255814-Nov-20 4:42
Member 1298255814-Nov-20 4:42 
GeneralRe: The learning rush Pin
Amarnath S14-Nov-20 4:50
professionalAmarnath S14-Nov-20 4:50 

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.