Development/Development
Anti-OOP: 분기 처리
2mukee
2024. 1. 20. 18:27
320x100
320x100
https://redutan.github.io/2016/03/31/anti-oop-if
Anti-OOP : if 를 피하고 싶어서
MJ's DevOOOOOOOOP blog
redutan.github.io
가능한 분기문을 없에라
: if-else와 switch-case문은 절차적 프로그래밍의 유산이므로 분기문을 최소화 함이 좋다
예시 코드가 함께 있으니 같이 보면 좋을 것 같습니다.
분기문을 많이 사용하는 코드가 있다면 OOP에 맞게 처리하면 좋겠습니다.
300x250
728x90