Содержание
- 2. Origin and history Book about architectural patterns by Christopher Alexander (1977) Kent Beck’s and Ward Cunningham’s
- 3. What they are? Reusable templates for solving recurring software design problems. © Accenture. By Maksims Ahadovs,
- 4. Why they matter? No need to discover (productivity) Solution verified over time (reliability) Common language for
- 5. Use and misuse Apply design patterns only when needed and only those which give benefit in
- 6. Classification Creational (Builder, Singleton, Factory, …) Structural (Facade, Decorator, Composite, …) Behavioral (Strategy, Chain of responsibility,
- 7. Simple factory Class which defines a method for creating instances of other classes. Not actually a
- 8. Facade Provide a unified interface to a set of interfaces in a subsystem. Facade defines a
- 9. Repository Mediates between the domain and data mapping layers using a collection-like interface for accessing domain
- 10. Decorator Attach additional responsibilities to an object dynamically. Decorators provide a flexible alternative to subclassing for
- 11. Template method Define the skeleton of an algorithm in an operation, deferring some steps to subclasses.
- 12. Summary Avoid POTY (Pattern Of The Year) syndrome © Accenture. By Maksims Ahadovs, Dmitri Kartashov-Gawski &
- 13. References GoF design patterns (dofactory) Pattern classification (gofpatterns) Head First Design Patterns book © Accenture. By
- 14. Video Tutorials Factory - https://www.youtube.com/watch?v=ub0DXaeV6hA Facade - https://www.youtube.com/watch?v=B1Y8fcYrz5o repository - https://www.youtube.com/watch?v=rtXpYpZdOzM decorator - https://www.youtube.com/watch?v=j40kRwSm4VE template -
- 15. Code examples https://github.com/maksims-ahadovs/Design-Patterns © Accenture. By Maksims Ahadovs, Dmitri Kartashov-Gawski & Artem Slobolinskyi.
- 17. Скачать презентацию