Click here to Skip to main content
15,892,005 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: Which do you prefer? A programming question! Pin
CPallini1-Jul-21 21:10
mveCPallini1-Jul-21 21:10 
GeneralRe: Which do you prefer? A programming question! Pin
rob tillaart1-Jul-21 21:40
rob tillaart1-Jul-21 21:40 
GeneralRe: Which do you prefer? A programming question! Pin
den2k881-Jul-21 21:48
professionalden2k881-Jul-21 21:48 
GeneralRe: Which do you prefer? A programming question! Pin
Private Dobbs1-Jul-21 21:54
Private Dobbs1-Jul-21 21:54 
GeneralRe: Which do you prefer? A programming question! Pin
YahiaEQ2-Jul-21 0:35
YahiaEQ2-Jul-21 0:35 
GeneralRe: Which do you prefer? A programming question! Pin
Delphi.7.Solutions2-Jul-21 1:11
Delphi.7.Solutions2-Jul-21 1:11 
GeneralRe: Which do you prefer? A programming question! Pin
Kirk 103898212-Jul-21 2:18
Kirk 103898212-Jul-21 2:18 
GeneralRe: Which do you prefer? A programming question! Pin
Gary Wheeler2-Jul-21 3:04
Gary Wheeler2-Jul-21 3:04 
I don't like the idea of having a DoSomething() and a MaybeDoSomething that only adds a simple if {...} around a call. My approach would have been:
void DoSomething(bool something_allowed)
{
    if (something_allowed)
    {
        // logic from original DoSomething()
    }
}
I've worked with code that was written such that there is only one or two block constructs per method. Naming ends up stupid (OpenFileIfFoundAndNotAlreadyOpen(), anyone?), and it makes it very difficult to follow logic. I would much rather have a method run a little longer yet be able to see the entire algorithm in one place.
Software Zen: delete this;

GeneralRe: Which do you prefer? A programming question! Pin
Reelix2-Jul-21 5:35
Reelix2-Jul-21 5:35 
GeneralRe: Which do you prefer? A programming question! Pin
sasadler2-Jul-21 6:20
sasadler2-Jul-21 6:20 
GeneralRe: Which do you prefer? A programming question! Pin
charlieg2-Jul-21 11:49
charlieg2-Jul-21 11:49 
GeneralRe: Which do you prefer? A programming question! Pin
r_hyde2-Jul-21 12:05
r_hyde2-Jul-21 12:05 
GeneralRe: Which do you prefer? A programming question! Pin
Gerry Schmitz2-Jul-21 19:11
mveGerry Schmitz2-Jul-21 19:11 
GeneralRe: Which do you prefer? A programming question! Pin
Martin ISDN3-Jul-21 3:19
Martin ISDN3-Jul-21 3:19 
GeneralRe: Which do you prefer? A programming question! Pin
AnotherKen3-Jul-21 17:55
professionalAnotherKen3-Jul-21 17:55 
GeneralRe: Which do you prefer? A programming question! Pin
rjmoses4-Jul-21 0:40
professionalrjmoses4-Jul-21 0:40 
GeneralRe: Which do you prefer? A programming question! Pin
Member 140926054-Jul-21 23:52
Member 140926054-Jul-21 23:52 
GeneralRe: Which do you prefer? A programming question! Pin
PSU Steve6-Jul-21 3:26
professionalPSU Steve6-Jul-21 3:26 
GeneralThought of the Day Pin
OriginalGriff1-Jul-21 4:38
mveOriginalGriff1-Jul-21 4:38 
GeneralRe: Thought of the Day Pin
k50541-Jul-21 4:53
mvek50541-Jul-21 4:53 
GeneralRe: Thought of the Day Pin
DRHuff1-Jul-21 5:03
DRHuff1-Jul-21 5:03 
GeneralRe: Thought of the Day Pin
Mike Hankey1-Jul-21 5:08
mveMike Hankey1-Jul-21 5:08 
GeneralRe: Thought of the Day Pin
W Balboos, GHB1-Jul-21 5:10
W Balboos, GHB1-Jul-21 5:10 
AnswerRe: Thought of the Day Pin
SeeSharp21-Jul-21 5:11
SeeSharp21-Jul-21 5:11 
GeneralRe: Thought of the Day Pin
W Balboos, GHB1-Jul-21 5:16
W Balboos, GHB1-Jul-21 5:16 

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.