Click here to Skip to main content
15,887,027 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: Happy birthday Griff! Pin
Sandeep Mewara24-Feb-23 8:02
mveSandeep Mewara24-Feb-23 8:02 
GeneralRe: Happy birthday Griff! Pin
Daniel Pfeffer25-Feb-23 8:41
professionalDaniel Pfeffer25-Feb-23 8:41 
GeneralSimple... wandering of mind on a tiny bit of code style... Pin
Super Lloyd23-Feb-23 17:17
Super Lloyd23-Feb-23 17:17 
GeneralRe: Simple... wandering of mind on a tiny bit of code style... Pin
Sander Rossel23-Feb-23 21:16
professionalSander Rossel23-Feb-23 21:16 
GeneralRe: Simple... wandering of mind on a tiny bit of code style... Pin
Super Lloyd24-Feb-23 0:48
Super Lloyd24-Feb-23 0:48 
GeneralRe: Simple... wandering of mind on a tiny bit of code style... Pin
Sander Rossel24-Feb-23 5:24
professionalSander Rossel24-Feb-23 5:24 
GeneralRe: Simple... wandering of mind on a tiny bit of code style... Pin
DerekT-P27-Feb-23 1:06
professionalDerekT-P27-Feb-23 1:06 
GeneralRe: Simple... wandering of mind on a tiny bit of code style... Pin
trønderen24-Feb-23 8:59
trønderen24-Feb-23 8:59 
I take the liberty to slightly defend that code reviewer. It is a matter of blackboxing: When you reference that bc property of a, you should be unaffected by how the a object structures its attributes, i.e. whether it has a single bc attribute (and maybe bc1, bc2, bc3, ...) or groups all the b<*> attributes into a b object with subfields.

C# lets the a object provide a .bc property, so that is can map it to a .bc or a b.c field at its own discretion. Maybe that is nowadays available in C++ as well (it wasn't when I switched from C++ to C#). I have become very fond of blackboxing and need-to-know: You should need to know as little as possible about the inner structure of the objects you interact with. a.b.c does reveal an inner structure that you shouldn't care about.

But I most certainly would prefer a .bc property to a GetBc(A a) method!
GeneralRe: Simple... wandering of mind on a tiny bit of code style... Pin
jschell24-Feb-23 10:21
jschell24-Feb-23 10:21 
GeneralRe: Simple... wandering of mind on a tiny bit of code style... Pin
Marc Clifton24-Feb-23 1:14
mvaMarc Clifton24-Feb-23 1:14 
GeneralRe: Simple... wandering of mind on a tiny bit of code style... Pin
MarkTJohnson24-Feb-23 2:20
professionalMarkTJohnson24-Feb-23 2:20 
GeneralRe: Simple... wandering of mind on a tiny bit of code style... Pin
englebart26-Feb-23 15:47
professionalenglebart26-Feb-23 15:47 
GeneralRe: Simple... wandering of mind on a tiny bit of code style... Pin
Slacker00724-Feb-23 2:47
professionalSlacker00724-Feb-23 2:47 
GeneralRe: Simple... wandering of mind on a tiny bit of code style... Pin
PIEBALDconsult24-Feb-23 2:54
mvePIEBALDconsult24-Feb-23 2:54 
GeneralRe: Simple... wandering of mind on a tiny bit of code style... Pin
Gerry Schmitz24-Feb-23 8:09
mveGerry Schmitz24-Feb-23 8:09 
GeneralRe: Simple... wandering of mind on a tiny bit of code style... Pin
PIEBALDconsult24-Feb-23 9:47
mvePIEBALDconsult24-Feb-23 9:47 
GeneralWordle 615 Pin
StarNamer@work23-Feb-23 13:22
professionalStarNamer@work23-Feb-23 13:22 
GeneralRe: Wordle 615 Pin
Amarnath S23-Feb-23 13:38
professionalAmarnath S23-Feb-23 13:38 
GeneralRe: Wordle 615 Pin
Shane010323-Feb-23 18:15
Shane010323-Feb-23 18:15 
GeneralRe: Wordle 615 Pin
OriginalGriff23-Feb-23 18:16
mveOriginalGriff23-Feb-23 18:16 
GeneralRe: Wordle 615 Pin
Sandeep Mewara23-Feb-23 18:23
mveSandeep Mewara23-Feb-23 18:23 
GeneralRe: Wordle 615 - three 4 me Pin
pkfox23-Feb-23 20:17
professionalpkfox23-Feb-23 20:17 
GeneralRe: Wordle 615 - 3/6 Pin
jmaida24-Feb-23 15:31
jmaida24-Feb-23 15:31 
GeneralRe: Wordle 615 Pin
ChandraRam23-Feb-23 20:36
ChandraRam23-Feb-23 20:36 
GeneralRe: Wordle 615 5/6 Pin
den2k8823-Feb-23 20:48
professionalden2k8823-Feb-23 20:48 

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.