Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
sammygadd
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
3 ms
·
1.
▲
by
sammygadd
3y ago
In the first example it seems obvious that that logic belongs in Item. But for the coupon stuff, that doesn't fell 100% right either. IMHO Coupon should be the one that knows how to calculate item costs, items should know nothing about