Life & Dev
  • Home
  • Who I am?
Subscribe

oop

A collection of 2 posts
Composition over inheritance
javascript

Composition over inheritance

우선 동영상 하나 보고 가실게요. What's wrong with inheritance? Object Oriented Programming (이하 OOP) 에서 polymorphic (다형성) 을 구현하기 위해서 사용되는 방법 중 가장 대표적인 것이 아마 inheritance 일 것이다. 하지만, 지속적으로 inheritance 의 문제점이 지적되어 왔다. 대표적인 것이 이른바 고릴라 바나나 역설 이다. I think the lack of reusability
2017년 6월 27일 — 5 min read
Javascript prototype inheritance
javascript

Javascript prototype inheritance

최근 Javascript 는 그야말로 어디에나 쓰인다고 해도 과언이 아닌데, 그 범용성 만큼이나 문법이 변태같다 특이하다. 이는 functional 한 언어인 동시에 object oriented 코딩을 지원하기 때문에 더더욱 그렇다. 게다가 class 도 아니고 prototype 방식으로 OOP 를 구현하여 더더욱 알수 없는 물건이 되었다. *The 'new' keyword from [FunFunFunction](https://www.youtube.com/
2017년 6월 26일 — 9 min read
Life & Dev © 2025
Powered by Ghost