컴퓨터/소프트웨어 공학1 [Refactoring] Bad smell * bad smell : 코드를 보면 문제로 금방 보고 느껴지는 것 코드 이름은 1시간을 이야기해도 부족할 게 없음. 많은 개발자들이 생각나는대로 이름을 짓는다. 협업 시 코드 이름을 맞추는 거로 싸움이 되는 원인이 되기도 함. * smel of rush(너무 서두름으로 생기는 smell) : Long Function/Method, Large Class, Long parameter List, data clumps, Primitive Obsessionn * smell of OOP abusers : Switch Statements (Repeated Switches), Temporary Field, Alternative Classes with Different Interface, Refused Bequest .. 2021. 4. 6. 이전 1 다음