Click here to Skip to main content
15,886,919 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: Breakthrough! Pin
Nelek17-Feb-24 23:26
protectorNelek17-Feb-24 23:26 
RantWSL can't properly mount USB drives Pin
honey the codewitch16-Feb-24 10:38
mvahoney the codewitch16-Feb-24 10:38 
GeneralRe: WSL can't properly mount USB drives Pin
RickZeeland16-Feb-24 20:02
mveRickZeeland16-Feb-24 20:02 
GeneralIntel and AMD updates for security vulnerabilities Pin
Richard Chambers16-Feb-24 10:33
Richard Chambers16-Feb-24 10:33 
GeneralRe: Intel and AMD updates for security vulnerabilities Pin
obermd17-Feb-24 7:15
obermd17-Feb-24 7:15 
GeneralRe: Intel and AMD updates for security vulnerabilities Pin
charlieg18-Feb-24 6:13
charlieg18-Feb-24 6:13 
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 
I'm very interested in feedback on this. Yes, it's somewhat related to my latest article[^], but I'm going through what I explain below, right now..

What if you were going to design some new service or app and you were told:
Development Manger:
"All high-level classes must depend only on Interfaces."
What if I told you that and was entirely serious.
Would you balk? or think, "Yes, that is the way it is and should be."

After that your manager says,
Development Manager:
"Something else will decide how to build the implementation which will fulfill the Interfaces."
Would that sound normal to you, or completely crazy? Or somewhere in between?

The Implications
Do you honestly understand the implications?

No Implementation Code
One of the implications is that the code Service or App you are creating basically has no implementation code in it. (Or very little.)
Why?
Because your high-level app only depends on easily-replaceable Interfaces.
That means if you want to see the implementation, you'll need to go to the Library (probably a separate project) which contains the implementation that is used to fulfill the Interface.

How do you feel about that?

Do you know how crazy it is to look at project that has been designed this way?
Have you ever experience a project that is carried out like this?

Why I'm Thinking About This Even More?
I have just completed 50 pages (of a total of 241) of the very old book (2013) DependencyInjection With Unity (free PDF or EPUB at link)[^].
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 
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 

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.