Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
mediaobelia
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
2 ms
·
1.
▲
by
mediaobelia
11y ago
> This avoids cluttering up the base class with loads of methods which won't be meaningful for most of the types I'd argue that shelfLife is meaningful for all Items, and it's unnecessarily presumptuous to assume only Cart
2.
▲
by
mediaobelia
11y ago
Biological taxonomy is just not a good analogy. Object behavior hierarchies aren't analogous to any real world thing, IME. They are what they are.