Click here to Skip to main content
15,916,042 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
boarderstu7-Nov-18 0:24
boarderstu7-Nov-18 0:24 
GeneralRe: From the Museum of Ugly Code Pin
BillW336-Nov-18 3:49
professionalBillW336-Nov-18 3:49 
GeneralRe: From the Museum of Ugly Code Pin
TheGreatAndPowerfulOz6-Nov-18 5:09
TheGreatAndPowerfulOz6-Nov-18 5:09 
GeneralRe: From the Museum of Ugly Code Pin
Stryder_16-Nov-18 4:15
Stryder_16-Nov-18 4:15 
GeneralRe: From the Museum of Ugly Code Pin
raddevus6-Nov-18 4:22
mvaraddevus6-Nov-18 4:22 
GeneralRe: From the Museum of Ugly Code Pin
TheGreatAndPowerfulOz6-Nov-18 5:11
TheGreatAndPowerfulOz6-Nov-18 5:11 
GeneralRe: From the Museum of Ugly Code Pin
Richard Deeming6-Nov-18 4:32
mveRichard Deeming6-Nov-18 4:32 
GeneralRe: From the Museum of Ugly Code Pin
TheGreatAndPowerfulOz6-Nov-18 5:06
TheGreatAndPowerfulOz6-Nov-18 5:06 
Yeah, I hate Hungarian notation, mostly because everyone, and I do mean everyone, missed the point. Hungarian notation was supposed to indicated the kind of thing it was, not it's type. That is it should say Customers, not objCustList nor objCustDict. Really, you don't need to tell me it's an int or number: nCount or iCount and you don't need to tell me it's an object or a list. Roll eyes | :rolleyes: Roll eyes | :rolleyes: Roll eyes | :rolleyes:

Named properly I can tell what a variable is.

As for the looping, personally don't see the problem with either approach. Whatever floats your boat. It's equivalent code. I like the for approach because I can immediately see what the loop dynamics are. The problem there is when, for some logical reason, you don't want to "moveNext()," in that case a while statement may serve better.
#SupportHeForShe
Government can give you nothing but what it takes from somebody else. A government big enough to give you everything you want is big enough to take everything you've got, including your freedom.-Ezra Taft Benson
You must accept 1 of 2 basic premises: Either we are alone in the universe or we are not alone. Either way, the implications are staggering!-Wernher von Braun

GeneralRe: From the Museum of Ugly Code Pin
charlieg6-Nov-18 9:17
charlieg6-Nov-18 9:17 
GeneralRe: From the Museum of Ugly Code Pin
raddevus6-Nov-18 10:47
mvaraddevus6-Nov-18 10:47 
GeneralRe: From the Museum of Ugly Code Pin
Member 91670576-Nov-18 21:09
Member 91670576-Nov-18 21:09 
GeneralRe: From the Museum of Ugly Code Pin
Tomz_KV7-Nov-18 3:41
Tomz_KV7-Nov-18 3:41 
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 
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... Pin
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 

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.