CategoryTagArticle

admin

I'm a Full-stack developer

Tag

Linked List
Data Structure
Chat GPT
Design Pattern
Microservices
API
AWS CDK
ReactJS
AWS Lightsail
Flutter Mobile
Design Patterns
Published date: 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/

Recommend

Data structure: Singly Linked List
admin07/04/2024

Data structure: Singly Linked List
In this article, I will show you how to set up a singly linked list algorithm in Python.
Semantic Versioning NodeJS
admin07/07/2023

Semantic Versioning NodeJS
How to Use Semantic Versioning in NPM
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
Newest

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.
TypeScript Design Pattern - Prototype
admin07/08/2023

TypeScript Design Pattern - Prototype
The prototype pattern is one of the Creational pattern groups. The responsibility is to create a new object through clone the existing object instead of using the new key. The new object is the same as the original object, and we can change its property does not impact the original object.
TypeScript Design Pattern - Adapter
admin08/08/2023

TypeScript Design Pattern - Adapter
This design pattern acts as a bridge between two different interfaces.
Đ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
Feedback
Name
Phone number
Email
Content
Download app
hotline

copyright © 2023 - AGAPIFA

Privacy
Term
About