3 ms·
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
by n72 14y ago
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