Click here to Skip to main content
15,897,226 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: From the Museum of Ugly Code Pin
raddevus7-Nov-18 3:58
mvaraddevus7-Nov-18 3:58 
JokeRe: From the Museum of Ugly Code Pin
Chris Maunder7-Nov-18 4:50
cofounderChris Maunder7-Nov-18 4:50 
GeneralRe: From the Museum of Ugly Code Pin
raddevus7-Nov-18 5:04
mvaraddevus7-Nov-18 5:04 
GeneralRe: From the Museum of Ugly Code Pin
Baraaaaaa7-Nov-18 5:27
Baraaaaaa7-Nov-18 5:27 
GeneralRe: From the Museum of Ugly Code Pin
raddevus7-Nov-18 5:36
mvaraddevus7-Nov-18 5:36 
GeneralRe: From the Museum of Ugly Code Pin
Gerry Schmitz7-Nov-18 5:44
mveGerry Schmitz7-Nov-18 5:44 
GeneralRe: From the Museum of Ugly Code Pin
raddevus7-Nov-18 5:48
mvaraddevus7-Nov-18 5:48 
GeneralRe: From the Museum of Ugly Code Pin
StrataRocha7-Nov-18 6:53
StrataRocha7-Nov-18 6:53 
Your logic isn't quite the same.

The original logic does moveNext() at the end of the loop, always. While your logic does it first, before "doing something".

The for loop variant guarantees that moveNext() is done for each loop iteration. The while loop variant can be goofed up by other devs adding a continue before doing the moveNext() -- speaking from experience, having had to fix these sorts of problems.....
JokeRe: From the Museum of Ugly Code Pin
raddevus7-Nov-18 7:25
mvaraddevus7-Nov-18 7:25 
GeneralRe: From the Museum of Ugly Code Pin
James Lonero9-Nov-18 6:38
James Lonero9-Nov-18 6:38 
NewsA weasel walks into a bar... PinPopular
Johnny J.5-Nov-18 23:57
professionalJohnny J.5-Nov-18 23:57 
GeneralRe: A weasel walks into a bar... Pin
  Forogar  6-Nov-18 2:20
professional  Forogar  6-Nov-18 2:20 
GeneralRe: A weasel walks into a bar... Pin
megaadam6-Nov-18 2:38
professionalmegaadam6-Nov-18 2:38 
GeneralRe: A weasel walks into a bar... Pin
Ron Anders6-Nov-18 2:53
Ron Anders6-Nov-18 2:53 
GeneralRe: A weasel walks into a bar... Pin
musefan6-Nov-18 3:22
musefan6-Nov-18 3:22 
GeneralRe: A weasel walks into a bar... Pin
Johnny J.6-Nov-18 4:02
professionalJohnny J.6-Nov-18 4:02 
GeneralRe: A weasel walks into a bar... Pin
littleGreenDude6-Nov-18 3:12
littleGreenDude6-Nov-18 3:12 
GeneralRe: A weasel walks into a bar... Pin
Johnny J.6-Nov-18 3:21
professionalJohnny J.6-Nov-18 3:21 
GeneralRe: A weasel walks into a bar... Pin
kmoorevs6-Nov-18 5:20
kmoorevs6-Nov-18 5:20 
GeneralCCC Pin
pkfox5-Nov-18 22:53
professionalpkfox5-Nov-18 22:53 
GeneralRe: CCC Pin
OriginalGriff5-Nov-18 23:01
mveOriginalGriff5-Nov-18 23:01 
GeneralRe: CCC Pin
pkfox5-Nov-18 23:08
professionalpkfox5-Nov-18 23:08 
GeneralRe: CCC Pin
OriginalGriff5-Nov-18 23:12
mveOriginalGriff5-Nov-18 23:12 
GeneralRe: CCC Pin
musefan5-Nov-18 23:05
musefan5-Nov-18 23:05 
GeneralRe: CCC Pin
pkfox5-Nov-18 23:07
professionalpkfox5-Nov-18 23:07 

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   20 votes