2. Why Design Pattern?
● Design patterns are the basic
building block for maintainable
software applications.
● A guide for novice developers
looking to improve their coding skills.
6. What is Design Pattern
Design patterns are reusable solutions to commonly occurring problems in
software design.
● Patterns are proven solutions to software development problems
● Patterns are scalable as they usually are structured and have rules that you
should follow
● Patterns are reusable for similar problems
7. Categories Of Design Pattern
● Creational - focus on handling object creation mechanisms
● Structural -concerned with object composition and typically identify simple
ways to realize relationships between different objects.
● Behavioral - focus on improving or streamlining the communication
between disparate objects in a system.
Although there is a long list of design patterns , I will
cover few
9. Module Design Pattern
Help in keeping the units of code for a project both cleanly separated and
organized. Github Gist-
10. Prototype
prototype pattern as being based on prototypal inheritance where we create
objects which act as prototypes for other objects. Github Gist-
11. Observer
Object updates, an event can be triggered to notify another component. The
observer pattern incorporates just that - if an object is modified it Github Gist-
12. Singleton Design Pattern
Only allows for a single instantiation, but many instances of the same object.
Github Gist-
13. Writing Design Patterns
● How practical is the pattern?
● Keep best practices in mind
● Our design patterns should be transparent to the user
● Remember that originality is not key in pattern design
● Patterns need a strong set of examples.