티스토리 뷰
* 상속은 프로그래밍의 기본 철학인 Don't Repeat Yourself(DRY) 원칙에 있어 매우 중요한 요소 중 하나다. 하지만 이러한 상속을 사용하지 말라는 글을 발견하여 흥미를 느껴 소개한다.
Don't inherit code (by Kevin Rutherford)
http://silkandspinach.net/2011/09/28/dont-inherit-code/
상속(extends)보다는 인터페이스(implements) 사용을 권장하는 내용이다.
Why you should use composition instead of inheritance (by Hoskinator)
http://hoskinator.blogspot.kr/2006/10/why-you-should-use-composition-instead.html
Why should I prefer composition over inheritance? (@Programmers)
http://programmers.stackexchange.com/questions/134097/why-should-i-prefer-composition-over-inheritance
댓글
최근에 올라온 글
최근에 달린 댓글
- Total
- Today
- Yesterday
링크
TAG
- jpa
- kotlin
- spring
- MySQL
- 구동계
- 자전거
- Spring Boot
- bootstrap
- Kendo UI
- node.js
- 로드바이크
- 평속
- chrome
- jsp
- 로드 바이크
- CentOS
- Tomcat
- Eclipse
- Spring MVC 3
- Kendo UI Web Grid
- 알뜰폰
- Docker
- maven
- JavaScript
- graylog
- JHipster
- java
- DynamoDB
- jstl
- 태그를 입력해 주세요.
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
글 보관함