Design Patterns

Design Patterns (What & Why)
  • Design patterns in object oriented programming world helps the developers to make a better software design.
  • Design patterns provides solutions to real world software application design problems or in application development.
  • Design Patterns are about applying reusable designs and interactions of objects.
  • Design patterns provide flexible solutions to solve common design problems in real world.
  • It is a template for “solve a problem in real time situations”.
  • Writing the code with design patterns will make your applications more Reliable, Scalable and Maintainable.
  • "A pattern is a recurring solution to a problem in a context.“

Creational Design Patterns
As the name suggests, this design provide mechanisms of various object creation which reuse of existing code and increase flexibility.
  • Abstract Factory
  • Builder
  • Factory Method
  • Prototype
  • Singleton
Structural Design Patterns
As the name suggests, this pattern help us to create and implement the flexible and efficient structures and  how to assemble objects and classes into larger structures.
  • Adapter
  • Bridge
  • Composite
  • Decorator
  • Façade
  • Flyweight
  • Proxy
Behavioral Design Patterns
As the name suggests, Object behavior and responsibilities between objects are very important and this design patterns are concerned with algorithms as well.
  • Chain of Responsibility
  • Command
  • Interpreter
  • Iterator
  • Mediator
  • Memento
  • Observer
  • State
  • Strategy
  • Template Method
  • Visitor
When to apply Design Patterns
  • Take the design as a reference and check does the design pattern really works as expected. If yes, then only use the pattern.
  • The most important part of applying patterns to your codebase is knowing when and where to apply each pattern.
  • If you implement just for the sake of the pattern, you will probably do more damage to your project.
  • So we’ve decided to go over the most commonly used patterns in first and give some easy and real time examples step by step.
  • How I can identify the software design problem?
Click below to see all these these things in action:

Check out the next Design Pattern sessions link below with very easy code examples.

No comments:

Post a Comment

Your feedback is important.
Visit www.techwebdots.in