Skip to content

Instantly share code, notes, and snippets.

@aellispierce
Last active August 29, 2015 14:16
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 aellispierce/a5c0a15c237e4fbbe2b7 to your computer and use it in GitHub Desktop.
Save aellispierce/a5c0a15c237e4fbbe2b7 to your computer and use it in GitHub Desktop.
Discuss Ruby Challenge

Detailed Ruby Questions

  • What is the difference between a hash and an array?

  • A hash is an unordered collection of key value pairs. An array is ordered and each value in the array corresponds to an index number, instead of a key.

  • What is the difference between a string and a symbol?

  • A symbol is similar to a string except for it can refer to a particular method or data table row.

  • When would you use composition instead of inheritance?

  • You would use composition if you wanted to create a new class with its own qualities, instead of inheriting qualities from another class

Big Picture Questions

  • Is it better to make a single large application, or to make many smaller applications? If you do ever take the second approach, how do you make them talk to each other?
  • It is typically considered better to make many smaller applications so that they're more maintanable. You make them talk to each others through APIs. This is called Service Oriented Architecture.
  • Do you think that there are any downsides to Object-Oriented Programming?
  • There are some downsides to object oriented programming in that in some instances making everything an object can cause you to write more code than in procedural programming.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment