python (65.2k questions)
javascript (44.3k questions)
reactjs (22.7k questions)
java (20.8k questions)
c# (17.4k questions)
html (16.3k questions)
r (13.7k questions)
android (13k questions)
Applying Interface Segregation Principle to service layer interface
Using the book as analogy, suppose I have a book resource with the following API (there are also update and delete etc but for simplicity only show two here)
GET /book/{id}
POST /book
Each of these A...
once
Votes: 0
Answers: 4
Identifying violations of the SOLID design principles
I'm trying to understand SOLID design patterns and design principles. Imagine creating a notification program, with a parent class that has one method called send notifications. Now the parent class h...
Casper Josh
Votes: 0
Answers: 2
How to correctly implement this design?
I came across this problem in an interview where I was asked to design a simple architecture for Vehicle infrastructure for all vehicles.
Problem statement was something like -
Consider a base class '...

Jasmeet
Votes: 0
Answers: 1
How can I make this small pseudocode comply with Liskov principle?
Keeping things tidy and simple, here is my initial Java pseudocode as an example:
public abstract class Vehicle {
private String owner;
private id plate;
public removeVehicle()...
BadProgrammer
Votes: 0
Answers: 1