Click here to Skip to main content
15,886,873 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: Never write another loop again Pin
BernardIE531721-Dec-23 19:02
BernardIE531721-Dec-23 19:02 
GeneralRe: Never write another loop again Pin
Marc Clifton15-Dec-23 4:14
mvaMarc Clifton15-Dec-23 4:14 
GeneralRe: Never write another loop again Pin
Steve Raw15-Dec-23 5:00
professionalSteve Raw15-Dec-23 5:00 
GeneralRe: Never write another loop again Pin
BernardIE531715-Dec-23 5:29
BernardIE531715-Dec-23 5:29 
GeneralRe: Never write another loop again Pin
Rick York15-Dec-23 7:02
mveRick York15-Dec-23 7:02 
GeneralRe: Never write another loop again Pin
BernardIE531715-Dec-23 12:38
BernardIE531715-Dec-23 12:38 
GeneralRe: Never write another loop again Pin
Rick York15-Dec-23 13:58
mveRick York15-Dec-23 13:58 
GeneralRe: Never write another loop again Pin
jschell15-Dec-23 5:38
jschell15-Dec-23 5:38 
Steve Raw wrote:
the only one who likes to avoid using recursion


There are certainly cases where it makes sense since there is no expectation that the business would need more. And example is recursing on an asset tree which users work. There is of course no reason for a user to use a tree that is, for example, 1,000 deep.

But I still enforce it by passing a depth variable. I don't do that really due to users doing something silly but rather because developers (including me) doing something silly and producing an endless loop.

Steve Raw wrote:
I use parentheses
just to make sure it operates in the proper order.


I do too. Makes it obvious to a maintainer what order I expected rather than leaving it up to them to verify every time it is looked at that the order represents what is actually needed.

Not to mention of course that doing it all the time means one does not get surprised by things like the precedence order for inline conditionals (question mark and colon). Which I have seen people get wrong.
JokeI was just in the doctors office... PinPopular
Sander Rossel15-Dec-23 2:28
professionalSander Rossel15-Dec-23 2:28 
GeneralRe: I was just in the doctors office... Pin
obermd15-Dec-23 3:54
obermd15-Dec-23 3:54 
GeneralDo you have YTDVideoDownload? Pin
charlieg15-Dec-23 1:01
charlieg15-Dec-23 1:01 
GeneralRe: Do you have YTDVideoDownload? Pin
milo-xml15-Dec-23 1:25
professionalmilo-xml15-Dec-23 1:25 
GeneralRe: Do you have YTDVideoDownload? Pin
charlieg15-Dec-23 5:44
charlieg15-Dec-23 5:44 
GeneralRe: Do you have YTDVideoDownload? Pin
Jeremy Falcon15-Dec-23 3:26
professionalJeremy Falcon15-Dec-23 3:26 
GeneralRe: Do you have YTDVideoDownload? Pin
charlieg15-Dec-23 5:37
charlieg15-Dec-23 5:37 
GeneralRe: Do you have YTDVideoDownload? Pin
Jeremy Falcon15-Dec-23 7:14
professionalJeremy Falcon15-Dec-23 7:14 
GeneralRe: Do you have YTDVideoDownload? Pin
charlieg16-Dec-23 16:46
charlieg16-Dec-23 16:46 
GeneralRe: Do you have YTDVideoDownload? Pin
charlieg29-Jan-24 8:00
charlieg29-Jan-24 8:00 
JokeI'm only 12.5% sure that God exists... Pin
Sander Rossel14-Dec-23 20:41
professionalSander Rossel14-Dec-23 20:41 
GeneralRe: I'm only 12.5% sure that God exists... Pin
Richard MacCutchan14-Dec-23 22:16
mveRichard MacCutchan14-Dec-23 22:16 
GeneralRe: I'm only 12.5% sure that God exists... Pin
PIEBALDconsult15-Dec-23 4:00
mvePIEBALDconsult15-Dec-23 4:00 
GeneralRe: I'm only 12.5% sure that God exists... Pin
charlieg14-Dec-23 23:25
charlieg14-Dec-23 23:25 
GeneralRe: I'm only 12.5% sure that God exists... Pin
Jeremy Falcon15-Dec-23 3:36
professionalJeremy Falcon15-Dec-23 3:36 
GeneralRe: I'm only 12.5% sure that God exists... Pin
BernardIE531715-Dec-23 3:57
BernardIE531715-Dec-23 3:57 
GeneralRe: I'm only 12.5% sure that God exists... Pin
Jeremy Falcon15-Dec-23 4:11
professionalJeremy Falcon15-Dec-23 4:11 

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.