Click here to Skip to main content
15,895,011 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: MPLab X IDE: Microchip dev & UX Pin
CPallini1-Jul-21 21:06
mveCPallini1-Jul-21 21:06 
GeneralRe: MPLab X IDE: Microchip dev & UX Pin
den2k881-Jul-21 21:45
professionalden2k881-Jul-21 21:45 
GeneralWhich do you prefer? A programming question! Pin
Marc Clifton1-Jul-21 6:59
mvaMarc Clifton1-Jul-21 6:59 
GeneralRe: Which do you prefer? A programming question! Pin
PIEBALDconsult1-Jul-21 7:28
mvePIEBALDconsult1-Jul-21 7:28 
GeneralRe: Which do you prefer? A programming question! Pin
raddevus1-Jul-21 7:30
mvaraddevus1-Jul-21 7:30 
GeneralRe: Which do you prefer? A programming question! Pin
Slacker0071-Jul-21 7:37
professionalSlacker0071-Jul-21 7:37 
GeneralRe: Which do you prefer? A programming question! Pin
MarkTJohnson1-Jul-21 7:38
professionalMarkTJohnson1-Jul-21 7:38 
GeneralRe: Which do you prefer? A programming question! Pin
Daniel Pfeffer1-Jul-21 7:45
professionalDaniel Pfeffer1-Jul-21 7:45 
I would normally use (1), but if there were many such usages, I might consider (2).
The advantage of (2) is that if it turns out that the conditional must be modified, it only need be done in one place:

Marc Clifton wrote:
MaybeDoSomething(foo);
...
void MaybeDoSomething(bool foo)
{
  if (foo)
  {
    // do the something, and do something else.
  }
}

Freedom is the freedom to say that two plus two make four. If that is granted, all else follows.
-- 6079 Smith W.

GeneralRe: Which do you prefer? A programming question! PinPopular
David O'Neil1-Jul-21 7:48
professionalDavid O'Neil1-Jul-21 7:48 
GeneralRe: Which do you prefer? A programming question! Pin
Daniel Pfeffer1-Jul-21 22:38
professionalDaniel Pfeffer1-Jul-21 22:38 
GeneralRe: Which do you prefer? A programming question! Pin
David O'Neil2-Jul-21 4:03
professionalDavid O'Neil2-Jul-21 4:03 
GeneralRe: Which do you prefer? A programming question! Pin
honey the codewitch2-Jul-21 4:26
mvahoney the codewitch2-Jul-21 4:26 
GeneralRe: Which do you prefer? A programming question! Pin
Daniel Pfeffer2-Jul-21 4:48
professionalDaniel Pfeffer2-Jul-21 4:48 
GeneralRe: Which do you prefer? A programming question! Pin
harold aptroot1-Jul-21 7:56
harold aptroot1-Jul-21 7:56 
GeneralRe: Which do you prefer? A programming question! Pin
Mike Hankey1-Jul-21 8:05
mveMike Hankey1-Jul-21 8:05 
GeneralRe: Which do you prefer? A programming question! Pin
Marc Clifton1-Jul-21 9:24
mvaMarc Clifton1-Jul-21 9:24 
GeneralRe: Which do you prefer? A programming question! Pin
Mike Hankey1-Jul-21 9:32
mveMike Hankey1-Jul-21 9:32 
GeneralRe: Which do you prefer? A programming question! Pin
BryanFazekas2-Jul-21 1:47
BryanFazekas2-Jul-21 1:47 
GeneralRe: Which do you prefer? A programming question! Pin
Alister Morton2-Jul-21 3:06
Alister Morton2-Jul-21 3:06 
GeneralRe: Which do you prefer? A programming question! Pin
Rusty Bullet6-Jul-21 7:19
Rusty Bullet6-Jul-21 7:19 
GeneralRe: Which do you prefer? A programming question! Pin
OriginalGriff1-Jul-21 8:25
mveOriginalGriff1-Jul-21 8:25 
GeneralRe: Which do you prefer? A programming question! Pin
rnbergren1-Jul-21 9:44
rnbergren1-Jul-21 9:44 
GeneralRe: Which do you prefer? A programming question! Pin
RickZeeland1-Jul-21 9:50
mveRickZeeland1-Jul-21 9:50 
GeneralRe: Which do you prefer? A programming question! PinPopular
Kschuler1-Jul-21 10:00
Kschuler1-Jul-21 10:00 
GeneralRe: Which do you prefer? A programming question! Pin
peterkmx1-Jul-21 11:40
professionalpeterkmx1-Jul-21 11:40 

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.