티스토리 뷰
* 상속은 프로그래밍의 기본 철학인 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
- 자전거
- kotlin
- JavaScript
- java
- jstl
- 로드바이크
- spring
- Tomcat
- Spring Boot
- maven
- jsp
- chrome
- Spring MVC 3
- 평속
- jpa
- 태그를 입력해 주세요.
- Kendo UI
- Eclipse
- 알뜰폰
- bootstrap
- JHipster
- Kendo UI Web Grid
- MySQL
- node.js
- graylog
- DynamoDB
- Docker
- 로드 바이크
- 구동계
- CentOS
| 일 | 월 | 화 | 수 | 목 | 금 | 토 |
|---|---|---|---|---|---|---|
| 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 |
| 30 |
글 보관함
