디자인 패턴이란?
디자인 패턴은 소프트웨어를 개발할 때 발생하는 다양한 문제에 대한 재사용 가능한 템플릿 해결방법
디자인 패턴의 종류
1. Creational Design Pattern
2. Structural Design Pattern
3. Behavioral Design Pattern
( + architectural patterns )
Creational Design Pattern
provides the object or classes creation mechanism that enhance the flexibilities and reusability of the existing code. They reduce the dependency and controlling how the use interaction with our class so we wouldn't deal with the complex construction.
- Signleton : Singleton design pattern make sure that there is only one instance of an object is created.
Structural Design Patterns
mainly responsible for assemble object and classes into a larger structure making sure that these structure should be flexible and efficient. They are very essential for enhancing readability and maintainability of the code. It also ensure that functionalities are properly separated, encapsulated. It reduces the minimal interface between interdependent things.
- Facade : It offers a simple interface to more complex underlying objects.
- Adapter
- MVC
Behavioural Design Patterns
- Observer
참고 :
https://www.javatpoint.com/classification-of-design-pattern-in-python
https://aglowiditsolutions.com/blog/top-swift-design-patterns/
'컴퓨터시스템' 카테고리의 다른 글
command line 명령어 (0) | 2023.09.12 |
---|---|
Runtime vs. Compile time 런타임과 컴파일타임 (0) | 2023.02.06 |
DI (Dependency Injection) 의존성 주입 (0) | 2022.11.21 |
Process vs. Thread (0) | 2022.09.18 |
네이밍 컨벤션 - camelCase, PascalCase, snake_case, kebab-case (0) | 2022.09.14 |