Don't Repeat Yourself Principle(DRY)

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)


Posted by ologist
 TAG ,

블로그 이미지
ologist

공지사항

Yesterday221
Today25
Total34,406

달력

 « |  » 2012.02
      1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29      

최근에 받은 트랙백

글 보관함