-
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
- 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.