October 2018
Intermediate to advanced
590 pages
15h 5m
English
Clients should not be forced to depend on methods that they do not use.
This principle deals with heavy interfaces. The clients of these heavy interfaces are forced to carry extra burdens. That is, they are subject to changes that are requested by other clients. Let's see an example of this.
Future Drone is a company that produces drones. Their research and development department has recently designed a drone that can fly and drive. There are two separate remote control devices for this drone—one controls its flying and the other controls its driving. Here is the design of their DroneController API:
As you can see, both remote control devices can access the methods ...
Read now
Unlock full access