Introduction Design Pattern



- The design pattern is an essential element in object-oriented programming.

- It is a software infrastructure made up of a small number of classes that is used to solve a technical problem.



Why these Design Patterns named as GoF?

It was 21 October 1994, when four authors Erich Gamma, Richard Helm, Ralph Johnson and John Vlissides, with a foreword by Grady Booch, published a book titled as Design Patterns – Elements of Reusable Object-Oriented Software which launched the concept of Design Pattern in Software design. These four authors are altogether known as the Gang of Four (GoF). Since then, these are called GoF Design Patterns.


 What are Design Patterns?

- A design pattern is a generic repeatable solution to a frequently occurring problem in software design that is used in software engineering.

- The design pattern is a reusable solution to a common problem that occurs in software design.


Why use a design pattern?

- The design pattern can accelerate the development process. It provides proven development paradigms, which helps save time without having to reinvent patterns every time a problem arises.

- Because the design pattern is created to fix known problems, they can be predicted before they become visible during the implementation process. Again, the design pattern speeds up the development process. Standardization related to the design pattern is also very useful to facilitate code readability.

- Design Patterns help us to solve a programming problem during project development. Moreover, Design Patterns will help us in fixing performance and memory related issues. 


What are the advantages/benefits of using Design Patterns?

1) Design Patterns help in finding the solution of a complex problem.

2) Using design patterns, we can make our code loosely-coupled.

3) Furthermore, it will have the option of reusable codes, which reduce the total development cost of the application.

4) Additionally, future developers feel the code more user-friendly.

5) It has all the standard approaches to find out solutions to the common problem of a software.

6) We can use the same pattern repeatedly in multiple projects.

7) Moreover, It helps in refactoring our code in a better way.



Types of Design Pattern

Total are Four Types as below : 

1. Creational 

2. Behaviour 

3. Structural 

4. J2EE






Comments