Click here to Skip to main content
15,887,485 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: Intel and AMD updates for security vulnerabilities Pin
jochance22-Feb-24 5:49
jochance22-Feb-24 5:49 
QuestionAll high-level classes must depend only on Interfaces Pin
raddevus16-Feb-24 8:46
mvaraddevus16-Feb-24 8:46 
AnswerRe: All high-level classes must depend only on Interfaces Pin
honey the codewitch16-Feb-24 10:42
mvahoney the codewitch16-Feb-24 10:42 
GeneralRe: All high-level classes must depend only on Interfaces Pin
raddevus16-Feb-24 10:56
mvaraddevus16-Feb-24 10:56 
GeneralRe: All high-level classes must depend only on Interfaces Pin
honey the codewitch16-Feb-24 11:50
mvahoney the codewitch16-Feb-24 11:50 
GeneralRe: All high-level classes must depend only on Interfaces Pin
jochance19-Feb-24 12:09
jochance19-Feb-24 12:09 
GeneralRe: All high-level classes must depend only on Interfaces Pin
raddevus20-Feb-24 2:44
mvaraddevus20-Feb-24 2:44 
GeneralRe: All high-level classes must depend only on Interfaces Pin
jochance22-Feb-24 5:59
jochance22-Feb-24 5:59 
I've had a big hand in building about 30-40 microservices which all tend to more or less follow this convention.

I do think "favor composition over inheritance" is a very strong win.

I do not appreciate 3 levels of abstraction to do anything. But you get into CQRS and suddenly that's your world.

We only have one that went real heavy on that and it's the one I probably hate the most. It was NOT appreciated that I should liken that to spaghetti code of old just on a newer plate.

It doesn't help one bit that the typical way this is done obviates any simpler way of doing by design. Scope keywords are wielded as cudgels to keep you in line. The "simple" ctors - they're all internal/private - so do the abstractions or do nothing.

I think if I wanted all of that I would use XML comments to highlight that *maybe* something should be done in the more complex of the ways but otherwise not design things in such a way to make it very difficult to do so simply (ditch all this scoping).
GeneralRe: All high-level classes must depend only on Interfaces Pin
hpcoder224-Feb-24 20:49
hpcoder224-Feb-24 20:49 
AnswerRe: All high-level classes must depend only on Interfaces Pin
trønderen16-Feb-24 11:12
trønderen16-Feb-24 11:12 
GeneralRe: All high-level classes must depend only on Interfaces Pin
raddevus17-Feb-24 4:25
mvaraddevus17-Feb-24 4:25 
AnswerRe: All high-level classes must depend only on Interfaces Pin
PIEBALDconsult16-Feb-24 11:46
mvePIEBALDconsult16-Feb-24 11:46 
GeneralRe: All high-level classes must depend only on Interfaces Pin
raddevus17-Feb-24 4:30
mvaraddevus17-Feb-24 4:30 
GeneralRe: All high-level classes must depend only on Interfaces Pin
PIEBALDconsult17-Feb-24 5:48
mvePIEBALDconsult17-Feb-24 5:48 
AnswerRe: All high-level classes must depend only on Interfaces Pin
englebart16-Feb-24 13:51
professionalenglebart16-Feb-24 13:51 
GeneralRe: All high-level classes must depend only on Interfaces Pin
raddevus17-Feb-24 4:36
mvaraddevus17-Feb-24 4:36 
GeneralRe: All high-level classes must depend only on Interfaces Pin
englebart17-Feb-24 14:20
professionalenglebart17-Feb-24 14:20 
GeneralRe: All high-level classes must depend only on Interfaces Pin
jschell19-Feb-24 6:01
jschell19-Feb-24 6:01 
JokeRe: All high-level classes must depend only on Interfaces Pin
englebart19-Feb-24 6:25
professionalenglebart19-Feb-24 6:25 
AnswerRe: All high-level classes must depend only on Interfaces Pin
RickZeeland16-Feb-24 20:10
mveRickZeeland16-Feb-24 20:10 
AnswerRe: All high-level classes must depend only on Interfaces Pin
Sander Rossel17-Feb-24 0:33
professionalSander Rossel17-Feb-24 0:33 
GeneralRe: All high-level classes must depend only on Interfaces Pin
raddevus17-Feb-24 4:41
mvaraddevus17-Feb-24 4:41 
AnswerRe: All high-level classes must depend only on Interfaces Pin
Ravi Bhavnani17-Feb-24 7:11
professionalRavi Bhavnani17-Feb-24 7:11 
GeneralRe: All high-level classes must depend only on Interfaces Pin
raddevus17-Feb-24 7:28
mvaraddevus17-Feb-24 7:28 
GeneralRe: All high-level classes must depend only on Interfaces Pin
englebart18-Feb-24 6:24
professionalenglebart18-Feb-24 6:24 

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.