적당한 고통은 희열이다

- 댄 브라운 '다빈치 코드' 중에서

컴퓨터시스템

Design Pattern 디자인 패턴이란?

hongssup_ 2022. 12. 20. 17:20
반응형

디자인 패턴이란?

디자인 패턴은 소프트웨어를 개발할 때 발생하는 다양한 문제에 대한 재사용 가능한 템플릿 해결방법

 

디자인 패턴의 종류

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/

 

728x90
반응형