+ All Categories
Home > Technology > Design patterns

Design patterns

Date post: 01-Dec-2014
Category:
Upload: oksana-demediuk
View: 443 times
Download: 3 times
Share this document with a friend
Description:
5 minutes presentation about design patterns. Only 3 examples, 1 for every type of design patterns
Popular Tags:
9
Design Patterns Oksana Demediuk
Transcript
Page 1: Design patterns

Design PatternsOksana Demediuk

Page 2: Design patterns

Design pattern is a general reusable solution to a commonly occurring problem in software design.

A design pattern is not a finished design that can be transformed directly into code. It is a description or template for how to solve a problem that can be used in many different situations.

What is Design Pattern

Page 3: Design patterns

To design a new software system quickly and efficiently.

To understand a existing software system.

Why Design Patterns

Page 4: Design patterns

Creational Design pattern– Object creation.

Structural design patterns– Relationship between entities.

Behavioral design patterns– Communication between objects.

Types of Design Pattern

Page 5: Design patterns

Periodic Table of Patterns

Page 6: Design patterns

Ensure a class has only one instance, and provide a global point of access to it.

Encapsulated “just-in-time initialization” or “initialization on first use”.

Type : Creational pattern.

Singleton Design Pattern

Page 7: Design patterns

The strategy pattern (also known as the policy

pattern) is a particular software design pattern,

whereby algorithms can be selected at runtime.

Type : Behavioral pattern.

Strategy Design pattern

Page 8: Design patterns

A facade is an object that provides a simplified interface to a larger body of code, such as a class library.

Type: Structural Design Pattern.

Facade pattern

Page 9: Design patterns

Speed up the development process by providing tested, proven development paradigms.

Help to prevent subtle issues that can cause major problems, code readability.

Provide general solutions, documented in a format that doesn't require specifics tied to a particular problem.

Allow developers to communicate using well-known, well understood names for software interactions.

A standard solution to a common programming problem enable large scale reuse of software

Design patterns advantages


Recommended