Create a gist now

Instantly share code, notes, and snippets.

@r00k /q1.md
Last active Jan 29, 2017

Quizzy Question 1

Question 1

What object-oriented programming advice is this code violating?

def check_for_overheating(system_monitor)
  if system_monitor.temperature > 100
    system_monitor.sound_alarms
  end
end

Note: please just answer this in your head, not in the comments. Don't spoil this for future quiz-takers!

Click here for the answer

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment