Skip to content

Instantly share code, notes, and snippets.

@rgbatty
Forked from mikedao/modules_questions.markdown
Created April 13, 2016 15:03
Show Gist options
  • Save rgbatty/d0468cae6747651822b3e0fce7bf9b11 to your computer and use it in GitHub Desktop.
Save rgbatty/d0468cae6747651822b3e0fce7bf9b11 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?
  • 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?
  • 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?
@rgbatty
Copy link
Author

rgbatty commented Apr 13, 2016

Modules allow for grouping subsets of code, ranging from variables all the way to classes.

This wouldn't occur because there is an implicit understanding that a golf ball doesn't belong in basketball. With a computer, if there is two defined Balls, there would be no way to differentiate the two.

Im not sure.

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