Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
username56283
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
3 ms
·
1.
▲
by
username56283
12y ago
What methods is this heating strategy going to call on water and stove? Consider for example that the stove builds up rust. Therefore it needs to know the properties of what's inside. Is the heating strategy going to tell it that?
2.
▲
by
username56283
12y ago
What (from a code organization perspective) might work better in practice is: water.heat(stove); because it's the water that's being changed and change should be encapsulated. On the other hand, the stove may also change