Skip to content

Instantly share code, notes, and snippets.

@ckaminer
Forked from mikedao/modules_questions.markdown
Last active April 13, 2016 15:55
Show Gist options
  • Save ckaminer/ef7e20babd4e4c537f781a4107bfee07 to your computer and use it in GitHub Desktop.
Save ckaminer/ef7e20babd4e4c537f781a4107bfee07 to your computer and use it in GitHub Desktop.
  • What do you know about modules already? If little, what would you guess modules are all about?
  • they are a collection of methods that can be required in other files similar to a class. If required, those methods become available to the class they are contained in.
  • Golf and basketball both use a ball. But if you're on a basketball court and ask for "the ball," no one is going to throw you a golf ball. Why? If you were as dumb as a computer, why would a golfd ball be an acceptable response?
  • a golf ball would be an acceptable response because it is still a ball.
  • You've learned about the object model and method lookups. What would the imapct be of injecting an additional ancestor into a class' lookup chain?

    • the ability to use those additional method lookups for the ancestor
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment