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

RESTful API - How to design?
admin09/06/2023

RESTful API - How to design?
In this article, I will describe the useful points of designing a good API.
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
Semantic Versioning NodeJS
admin07/07/2023

Semantic Versioning NodeJS
How to Use Semantic Versioning in NPM
Mới nhất

Create S3 Bucket with AWS CDK
admin09/06/2023

Create S3 Bucket with AWS CDK
In this article, I introduce Amazon CDK and how to write AWS infrastructure-as-code using TypeScript. We will do it step by step.
Create Cognito User Pool with AWS CDK
admin09/06/2023

Create Cognito User Pool with AWS CDK
In the previous post, I showed you how to create a simple S3 bucket. Next, in this article, I will guide you to create a Cognito User Pool.
Difference Between Stack and Queue
admin07/04/2024

Difference Between Stack and Queue
In the fundamental data structure, besides the linked list, the stack and queue are also used widely in computer science and programming.
Đ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