Design patterns represent the best practices used by experienced
object-oriented software developers. Design patterns are solutions to
general problems that software developers faced during software
development.
These solutions were obtained by trial and error by numerous software
developers over quite a substantial period of time.
পৃষ্ঠাসমূহ
Showing posts with label Design Patterns Tutorial. Show all posts
Showing posts with label Design Patterns Tutorial. Show all posts
Sunday, January 15, 2017
Design Pattern - Factory Pattern
Factory pattern is one of the most used design patterns in Java. This
type of design pattern comes under creational pattern as this pattern
provides one of the best ways to create an object.
Design Pattern - Abstract Factory Pattern
Abstract Factory patterns work around a super-factory which creates
other factories. This factory is also called as factory of factories.
This type of design pattern comes under creational pattern as this
pattern provides one of the best ways to create an object.
Design Pattern - Singleton Pattern
Singleton pattern is one of the simplest design patterns in Java.
This type of design pattern comes under creational pattern as this
pattern provides one of the best ways to create an object.
Design Patterns - Builder Pattern
Builder pattern builds a complex object using simple objects and
using a step by step approach. This type of design pattern comes under
creational pattern as this pattern provides one of the best ways to
create an object.
Design Patterns - Prototype Pattern
Prototype pattern refers to creating duplicate object while keeping
performance in mind. This type of design pattern comes under creational
pattern as this pattern provides one of the best ways to create an
object.
Design Patterns - Adapter Pattern
Adapter pattern works as a bridge between two incompatible
interfaces. This type of design pattern comes under structural pattern
as this pattern combines the capability of two independent interfaces.
Design Patterns - Bridge Pattern
Bridge is used when we need to decouple an abstraction from its
implementation so that the two can vary independently. This type of
design pattern comes under structural pattern as this pattern decouples
implementation class and abstract class by providing a bridge structure
between them.
Design Patterns - Filter Pattern
Filter pattern or Criteria pattern is a design pattern that enables
developers to filter a set of objects using different criteria and
chaining them in a decoupled way through logical operations. This type
of design pattern comes under structural pattern as this pattern
combines multiple criteria to obtain single criteria.
Design Patterns - Composite Pattern
Composite pattern is used where we need to treat a group of objects
in similar way as a single object. Composite pattern composes objects in
term of a tree structure to represent part as well as whole hierarchy.
This type of design pattern comes under structural pattern as this
pattern creates a tree structure of group of objects.
Design Patterns - Decorator Pattern
Decorator pattern allows a user to add new functionality to an
existing object without altering its structure. This type of design
pattern comes under structural pattern as this pattern acts as a wrapper
to existing class.
This pattern creates a decorator class which wraps the original class and provides additional functionality keeping class methods signature intact.
This pattern creates a decorator class which wraps the original class and provides additional functionality keeping class methods signature intact.
Design Patterns - Facade Pattern
Facade pattern hides the complexities of the system and provides an
interface to the client using which the client can access the system.
This type of design pattern comes under structural pattern as this
pattern adds an interface to existing system to hide its complexities.
Design Patterns - Flyweight Pattern
Flyweight pattern is primarily used to reduce the number of objects
created and to decrease memory footprint and increase performance. This
type of design pattern comes under structural pattern as this pattern
provides ways to decrease object count thus improving the object
structure of application.
Design Patterns - Proxy Pattern
In proxy pattern, a class represents functionality of another class. This type of design pattern comes under structural pattern.
In proxy pattern, we create object having original object to interface its functionality to outer world.
In proxy pattern, we create object having original object to interface its functionality to outer world.
Chain of Responsibility Pattern
As the name suggests, the chain of responsibility pattern creates a
chain of receiver objects for a request. This pattern decouples sender
and receiver of a request based on type of request. This pattern comes
under behavioral patterns.
Design Patterns - Command Pattern
Command pattern is a data driven design pattern and falls under
behavioral pattern category. A request is wrapped under an object as
command and passed to invoker object. Invoker object looks for the
appropriate object which can handle this command and passes the command
to the corresponding object which executes the command.
Design Patterns - Interpreter Pattern
Interpreter pattern provides a way to evaluate language grammar or
expression. This type of pattern comes under behavioral pattern. This
pattern involves implementing an expression interface which tells to
interpret a particular context. This pattern is used in SQL parsing,
symbol processing engine etc.
Design Patterns - Iterator Pattern
Iterator pattern is very commonly used design pattern in Java and
.Net programming environment. This pattern is used to get a way to
access the elements of a collection object in sequential manner without
any need to know its underlying representation.
Iterator pattern falls under behavioral pattern category.
Iterator pattern falls under behavioral pattern category.
Design Patterns - Memento Pattern
Memento pattern is used to restore state of an object to a previous
state. Memento pattern falls under behavioral pattern category.
Design Patterns - Observer Pattern
Observer pattern is used when there is one-to-many relationship
between objects such as if one object is modified, its depenedent
objects are to be notified automatically. Observer pattern falls under
behavioral pattern category.
Subscribe to:
Posts (Atom)