본문 바로가기

Basic/Design Pattern3

SOLID와 MVC 설계단계에서 어떤 아키텍처를 선택하여 설계를 진행할 것인지는 결국엔 프로그램의 전체적인 방향성, 비용과 시간에 직결된 문제이다. Robert C. Martin은 다섯 가지 지침을 개발했다. 다섯 가지 지침과 원칙을 통해 개발자는 읽기 쉽고 유지 보수가 쉬운 프로그램을 쉽게 만들 수 있다. 다섯 가지 원칙은 S.O.L.I.D이다. S: Single Responsibility Principle (단일 책임원칙) O: Open-Closed Principle (열린-닫힌 원칙) L: Liskov Substitution Principle (리스 코프 치환 원칙) I: Interface Segregation Principle (인터페이스 분리 원칙) D: Dependency Inversion Principle (의.. 2021. 9. 1.
Factory Method Pattern ReactElement.js를 보다가 주석에서 Factory method를 보았다. Factory method(Virtual Constructor)는 무엇인가? // ReactElement.js ("react": "^15.4.2") /** * Factory method to create a new React element. This no longer adheres to * the class pattern, so do not use new to call it. Also, no instanceof check * will work. Instead test $$typeof field against Symbol.for('react.element') to check * if something is a React E.. 2021. 8. 4.
디자인 패턴 사이트 모음 하나하나씩 공부해보자. https://refactoring.guru/design-patterns/what-is-pattern What’s a design pattern? What’s a design pattern? Design patterns are typical solutions to commonly occurring problems in software design. They are like pre-made blueprints that you can customize to solve a recurring design problem in your code. You can’t just find a pattern a refactoring.guru https://sourcemaking.com/design_p.. 2021. 8. 4.