Skip to content

Instantly share code, notes, and snippets.

@BrianZanti
Last active May 6, 2020 16:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save BrianZanti/c8f43e6878c68fe30c4386db1fbab4e3 to your computer and use it in GitHub Desktop.
Save BrianZanti/c8f43e6878c68fe30c4386db1fbab4e3 to your computer and use it in GitHub Desktop.

Part 1: Solo Research (10 minutes)

Research the following questions:

  1. What is Abstraction?
  2. What is Encapsulation?

Part 2: Group Chart Paper (20 minutes)

As a group, create a chart paper with the following:

  1. What is Abstraction?
  2. Explain abstraction using a metaphor.
  3. What is Encapsulation?
  4. Explain encapsulation using a metaphor.

Part 3: Paired Coding (30 minutes)

Create a ruby file and code up the following:

  1. An example of poor abstraction
  2. A refactored version of the previous example that achieves good abstraction
  3. An example of poor encapsulation
  4. A refactored version of the previous example that achieves good encapsulation
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment