Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
n72
on July 19, 2012
|
parent
|
context
|
favorite
| on:
Tell, don't ask
Ick, breaks command/query separation, the other OO rule that along with tell, don't ask I find to be a hallmark of well coded OO systems.
class SystemMonitor def check_for_overheating if temperature > 100 sound_alarms end end end
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search:
class SystemMonitor def check_for_overheating if temperature > 100 sound_alarms end end end