Danh mụcThẻBài viết

admin

I'm a Full-stack developer

Thẻ

Linked List
Data Structure
Chat GPT
Design Pattern
Microservices
API
AWS CDK
ReactJS
AWS Lightsail
Flutter Mobile
Design Patterns
Ngày đăng: 07/08/2023

What is a design pattern?

As master developers, they have to apply the design pattern to their code. OOP programming languages usually use design patterns because they provide better solutions to commonly occurring problems in software design.

The design pattern does not be a specific programming language. Almost programming languages might apply design patterns that to resolve a problem repeat.


Why should use design patterns?

Using the design pattern has some benefits:

  • Easy to re-use code and expand.
  • Resolving an issue effectively that is verified in software engineering.
  • Developing a software product quickly with a test model, a development model that is verified.
  • Avoiding large risks, upgrading, and maintaining is easier.
  • Code is consistent which makes the teammate could understand and discuss easily.


Classification of design patterns

The number of design patterns is 23 patterns and divided into 3 groups (Creational Pattern, Structural Pattern, Behavioral Pattern).


  • Creational Pattern is including 5 patterns: Factory Method, Abstract Factory, Builder, Prototype, and Singleton.


  • Structural Pattern contains 7 patterns: Adapter, Bridge, Composite, Decorator, Facade, Flyweight, and Proxy.

  • Behavioral Pattern has 11 patterns: Interpreter, Template Method, Chain of Responsibility, Command, Integrator, Mediator, Memento, Observer, State, Strategy, and Visitor.


Thank you for reading! I hope this article helps you can better understand design pattern overview. In the next article, I will go into each design pattern.


Documents:

https://refactoring.guru/

https://gpcoder.com/4164-gioi-thieu-design-patterns/

Đề xuất

TypeScript Design Pattern - Proxy
admin11/08/2023

TypeScript Design Pattern - Proxy
Provide a surrogate or placeholder for another object to control access to it.
Data structure: Doubly Linked List
admin07/04/2024

Data structure: Doubly Linked List
In this article, I would like to show you about Data structure - Doubly Linked List
How to integrate ChatGPT-3.5 Turbo into Node.js
admin10/01/2024

How to integrate ChatGPT-3.5 Turbo into Node.js
Step-by-Step Guide to Incorporating ChatGPT-3.5 Turbo into Node.js for Basic ReactJS Applications
Mới nhất

Create Project with Express + TypeScript + ESLint + Auto Reload
admin12/06/2023

Create Project with Express + TypeScript + ESLint + Auto Reload
In this article, I introduce to you how to initialize an Express + TypeScript project.
Design Patterns
admin07/08/2023

Design Patterns
The design pattern does not be a specific programming language. Almost programming languages might apply design patterns that to resolve a problem repeat.
NodeJS Verify and Decode Cognito JWT Tokens
admin12/06/2023

NodeJS Verify and Decode Cognito JWT Tokens
In this article, I will show you how to verify and decode the Cognito JWT Tokens token.
Đinh Thành Công Blog

My website, where I write blogs on a variety of topics and where I have some experiments with new technologies.

hotlinelinkedinskypezalofacebook
DMCA.com Protection Status
Góp ý
Họ & Tên
Số điện thoại
Email
Nội dung
Tải ứng dụng
hotline

copyright © 2023 - AGAPIFA

Privacy
Term
About