Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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: