Skip to content

Instantly share code, notes, and snippets.

@r00k
Last active January 29, 2017 03:00
Show Gist options
  • Star 24 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save r00k/2e011a9a917364c2ced4 to your computer and use it in GitHub Desktop.
Save r00k/2e011a9a917364c2ced4 to your computer and use it in GitHub Desktop.
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!

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