What does it mean when one says “Encapsulate what varies”?
One of the OOP principles I came across is: -Encapsulate what varies. I understand what the literal meaning of the phrase is i.e. hide what varies. However, I don't know how exactly would it contr...
softwareengineering.stackexchange.com
OO Principle의 중요한 관점중 하나는,
Varying parts와 Non varying parts를 구분해서,
Varying parts를 캡슐화(Encapsulation)하여 따로 관리(Maintenance)하는 것이다.
'클린코드' 카테고리의 다른 글
좋은 코드란 CHANGE의 영향력을 최소화하며 기꺼이 받아들이는 것 (0) | 2021.06.20 |
---|---|
소스코드 문서화 프로그램 Doxygen (0) | 2020.05.15 |
코드 스니펫(Code snippet)을 사용하여 불필요한 코드작성을 줄이자. (0) | 2020.05.02 |
소스코드와 헤더파일의 분리 (0) | 2020.04.15 |
Clean Code를 작성하는 우선순위 15가지 (0) | 2020.04.08 |