Click here to Skip to main content
15,887,596 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: All high-level classes must depend only on Interfaces Pin
Ravi Bhavnani19-Feb-24 9:16
professionalRavi Bhavnani19-Feb-24 9:16 
GeneralRe: All high-level classes must depend only on Interfaces Pin
hpcoder224-Feb-24 21:26
hpcoder224-Feb-24 21:26 
GeneralRe: All high-level classes must depend only on Interfaces Pin
Ravi Bhavnani24-Feb-24 21:48
professionalRavi Bhavnani24-Feb-24 21:48 
GeneralRe: All high-level classes must depend only on Interfaces Pin
hpcoder225-Feb-24 17:37
hpcoder225-Feb-24 17:37 
GeneralRe: All high-level classes must depend only on Interfaces Pin
Ravi Bhavnani25-Feb-24 20:05
professionalRavi Bhavnani25-Feb-24 20:05 
GeneralRe: All high-level classes must depend only on Interfaces Pin
hpcoder226-Feb-24 13:28
hpcoder226-Feb-24 13:28 
GeneralRe: All high-level classes must depend only on Interfaces Pin
Ravi Bhavnani27-Feb-24 4:51
professionalRavi Bhavnani27-Feb-24 4:51 
GeneralRe: All high-level classes must depend only on Interfaces Pin
hpcoder227-Feb-24 10:53
hpcoder227-Feb-24 10:53 
I have no problem with the independent subsystems being mocked. There are relatively few of these.

In examples I've seen, every single class implements an interface, and every interacting class is mocked, leading to triple the number of classes, and a nightmare to read and/or debug the code. Way too much!

Re friendship violating Liskov, then so much the worse for Liskov. Friendship has its place and uses, but shouldn't be overused - just like global variables, mutable members and dependency injection.
GeneralRe: All high-level classes must depend only on Interfaces Pin
Ravi Bhavnani27-Feb-24 12:24
professionalRavi Bhavnani27-Feb-24 12:24 
GeneralRe: All high-level classes must depend only on Interfaces Pin
jschell19-Feb-24 6:11
jschell19-Feb-24 6:11 
GeneralRe: All high-level classes must depend only on Interfaces Pin
Ravi Bhavnani19-Feb-24 9:14
professionalRavi Bhavnani19-Feb-24 9:14 
GeneralRe: All high-level classes must depend only on Interfaces Pin
jschell20-Feb-24 12:11
jschell20-Feb-24 12:11 
GeneralRe: All high-level classes must depend only on Interfaces Pin
Ravi Bhavnani20-Feb-24 17:18
professionalRavi Bhavnani20-Feb-24 17:18 
GeneralRe: All high-level classes must depend only on Interfaces Pin
jschell22-Feb-24 12:29
jschell22-Feb-24 12:29 
GeneralRe: All high-level classes must depend only on Interfaces Pin
Ravi Bhavnani23-Feb-24 19:00
professionalRavi Bhavnani23-Feb-24 19:00 
GeneralRe: All high-level classes must depend only on Interfaces Pin
jschell26-Feb-24 12:13
jschell26-Feb-24 12:13 
GeneralRe: All high-level classes must depend only on Interfaces Pin
Ravi Bhavnani27-Feb-24 4:46
professionalRavi Bhavnani27-Feb-24 4:46 
GeneralRe: All high-level classes must depend only on Interfaces Pin
jschell28-Feb-24 12:15
jschell28-Feb-24 12:15 
GeneralRe: All high-level classes must depend only on Interfaces Pin
Ravi Bhavnani28-Feb-24 17:43
professionalRavi Bhavnani28-Feb-24 17:43 
GeneralRe: All high-level classes must depend only on Interfaces Pin
jschell29-Feb-24 12:29
jschell29-Feb-24 12:29 
GeneralRe: All high-level classes must depend only on Interfaces Pin
Ravi Bhavnani29-Feb-24 16:07
professionalRavi Bhavnani29-Feb-24 16:07 
GeneralRe: All high-level classes must depend only on Interfaces Pin
jschell1-Mar-24 11:59
jschell1-Mar-24 11:59 
GeneralRe: All high-level classes must depend only on Interfaces Pin
Ravi Bhavnani1-Mar-24 16:35
professionalRavi Bhavnani1-Mar-24 16:35 
GeneralRe: All high-level classes must depend only on Interfaces Pin
jschell6-Mar-24 12:07
jschell6-Mar-24 12:07 
AnswerRe: All high-level classes must depend only on Interfaces Pin
Gerry Schmitz18-Feb-24 6:17
mveGerry Schmitz18-Feb-24 6:17 

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.