Click here to Skip to main content
15,299,444 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
Memberrob 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
MemberPrivate Dobbs1-Jul-21 21:54 
GeneralRe: Which do you prefer? A programming question! Pin
YahiaEQ2-Jul-21 0:35
MemberYahiaEQ2-Jul-21 0:35 
GeneralRe: Which do you prefer? A programming question! Pin
Delphi.7.Solutions2-Jul-21 1:11
MemberDelphi.7.Solutions2-Jul-21 1:11 
GeneralRe: Which do you prefer? A programming question! Pin
Kirk 103898212-Jul-21 2:18
MemberKirk 103898212-Jul-21 2:18 
GeneralRe: Which do you prefer? A programming question! Pin
Gary Wheeler2-Jul-21 3:04
MemberGary 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
MemberReelix2-Jul-21 5:35 
GeneralRe: Which do you prefer? A programming question! Pin
sasadler2-Jul-21 6:20
Membersasadler2-Jul-21 6:20 
GeneralRe: Which do you prefer? A programming question! Pin
charlieg2-Jul-21 11:49
Membercharlieg2-Jul-21 11:49 
GeneralRe: Which do you prefer? A programming question! Pin
r_hyde2-Jul-21 12:05
Memberr_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
MemberMartin 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
MemberMember 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
MemberDRHuff1-Jul-21 5:03 
GeneralRe: Thought of the Day Pin
Mike Hankey1-Jul-21 5:08
professionalMike Hankey1-Jul-21 5:08 
GeneralRe: Thought of the Day Pin
W Balboos, GHB1-Jul-21 5:10
mveW Balboos, GHB1-Jul-21 5:10 
AnswerRe: Thought of the Day Pin
SeeSharp21-Jul-21 5:11
MemberSeeSharp21-Jul-21 5:11 
GeneralRe: Thought of the Day Pin
W Balboos, GHB1-Jul-21 5:16
mveW 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.


Straw Poll

On which operating systems are you writing code?
Let's see if things have changed since we last ran this. "writing code" meaning editing, building, and running the code on that OS.
  Results   97 votes