Skip to content

Instantly share code, notes, and snippets.

@robbiejaeger
Forked from mikedao/modules_questions.markdown
Last active April 13, 2016 16:33
Show Gist options
  • Save robbiejaeger/b1cf800df7405ba6a8d39817d109ca9b to your computer and use it in GitHub Desktop.
Save robbiejaeger/b1cf800df7405ba6a8d39817d109ca9b 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?
    • Only that they create a "container" for a group of classes. It is a way to have classes with the same name not interfere (different namespaces?...)
  • 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?
    • In the game, you have context of the game being played. The computer doesn't have the context.
  • 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?
    • Another scope level?
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment