If you can't read please download the document
Upload
jon-kartago-lamida
View
2.709
Download
2
Embed Size (px)
DESCRIPTION
Dependency Inversion PrincipleInterface Segregation Principle
Citation preview
Dependency Inversion Principle Interface Segregation Principle Jon Kartago Lamida http://lamida.net 2. Agenda
3. DIP 4. ISP 5. Prerequisite
6. SRP 7. OCP 8. LSP 9. Dependency Inversion Principle
10. Dependency Structure Procedural Architecture 11. Dependency Structure Object Oriented Architecture 12. Copy Program 13. Copy Program 14. Copy Program with DIP 15. Copy Program with DIP 16. DIP Summary
17. Abstraction should not depend upon detail. Detail should depend upon abstraction 18. Since the abstractions and details are all isolated from each other, the code is much easier to maintain. 19. The Interface Segregation Principle
20. Fat Service with Integrated Interfaces 21. Fat Service with Integrated Interfaces 22. Segregated Interfaces 23. Segregated Interfaces 24. Door Application 25. Door Application 26. Door Application 27. Door Application 28. ISP Summary
29. E.g WoodDoor should not be forced depend to TimerClient 30. Segregate TimerClient hierarchy so only client whoneed that will implement 31. Discussion