2007/05/10 10:30 Developer
Don't Repeat Yourself Principle(DRY)
Don't Repeat Yourself Principle(DRY)
Aoid duplicate code by abstracting out things that are common and placing those things in a single location.
Aoid duplicate code by abstracting out things that are common and placing those things in a single location.
Head First OOAD에 나오는 문구이다. 대부분의 OO책에 나오는 이야기지만, DRY이라는 말이 좋아서 적어본다. 꼭 OO뿐만 아니라 불필요하게 중복된 정의들은 사람을 귀찮게 한다.
DRY is about having each piece of information and behavior ni your system in a single, sensible place.
출처 : Head First OOAD (P.382)
