Uploaded by smallfish234

Inversion of Control2

advertisement
Inversion of Control
Inversion of Control is about making things dependent on interfaces not concretes. Stance or
idea or a frame
Dependency injection is a pattern you can use to achieve inversion of control.
https://martinfowler.com/articles/injection.html
High level modules should not depend on low-level modules. Both should depend on
abstractions. Abstractions should not depend on details. Details should depend on abstractions.
Single Responsibility Principle
Dependency Inversion
Domain-Driven Design (DDD) ideas (“Real” Object-Orientation)
This just models the real world anyway
Insurance rate computation example
Download