search
HomeCommon ProblemWhat are the elements of design patterns?

What are the elements of design patterns?

Jun 29, 2020 pm 03:28 PM
elementDesign Patterns

The design pattern elements are: 1. Pattern name, used to describe the design pattern, solution and effect; 2. Problem, mainly describing when to use the design pattern; 3. Solution, describing the composition of the design Components, their interrelationships and their respective responsibilities and collaboration methods; 4. Effects, describing the effects of pattern application and the trade-offs of using patterns.

What are the elements of design patterns?

The basic elements of a design pattern are: pattern name, problem, solution and effect.

1. Pattern name: a mnemonic name used to describe design patterns, solutions and effects.

2. Question: Mainly describes when to use design patterns.

3. Solution: Describes the components of the design, their interrelationships, their respective responsibilities and collaboration methods

4. Effect: Describes the effect and usage mode of the pattern application A matter of trade-offs.

Design pattern (Design pattern) is a set of classified and cataloged summary of code design experience that is used repeatedly, known to most people. The purpose of using design patterns is to reuse code, make the code easier to understand by others, and ensure code reliability.

There is no doubt that design patterns are win-win for ourselves, others, and the system; design patterns make coding truly engineering; design patterns are the cornerstone of software engineering, just like the structure of a building.

For more related knowledge, please visit PHP Chinese website! !

The above is the detailed content of What are the elements of design patterns?. For more information, please follow other related articles on the PHP Chinese website!

Statement
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

AI Hentai Generator

AI Hentai Generator

Generate AI Hentai for free.

Hot Article

R.E.P.O. Energy Crystals Explained and What They Do (Yellow Crystal)
4 weeks agoBy尊渡假赌尊渡假赌尊渡假赌
R.E.P.O. Best Graphic Settings
4 weeks agoBy尊渡假赌尊渡假赌尊渡假赌
R.E.P.O. How to Fix Audio if You Can't Hear Anyone
4 weeks agoBy尊渡假赌尊渡假赌尊渡假赌
R.E.P.O. Chat Commands and How to Use Them
4 weeks agoBy尊渡假赌尊渡假赌尊渡假赌

Hot Tools

Dreamweaver Mac version

Dreamweaver Mac version

Visual web development tools

EditPlus Chinese cracked version

EditPlus Chinese cracked version

Small size, syntax highlighting, does not support code prompt function

Atom editor mac version download

Atom editor mac version download

The most popular open source editor

VSCode Windows 64-bit Download

VSCode Windows 64-bit Download

A free and powerful IDE editor launched by Microsoft

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)