Application Architecture, MVC Design Pattern

... About 1 min

# Application Architecture, MVC Design Pattern

1. What are the Pillars of Object Oriented Programming (OOP)?

Abstraction, encapsulation, inheritance, and polymorphism. Abstraction is the hiding of stuff. Encapsulation is separating data to help organization. Inheritance is making sure stuff is getting the properties of it parents. Polymorphism is having a condition appearing in several different forms.
1

2. How would you access the name of the below object using the property variable?

let staff = {
  name: "Tim",
  age: 26,
  job: "Code Monkey"
  }
let property = 'name'
1
2
3
4
5
6
let property staff.name
1

3. What is Encapsulation?

Encapsulation is separating data to help organize.
1

4. What does the S stand for in the SOLID principles?

Single responsibility. This is meaning having a function only do one thing, instead of trying to cram it all in.
1

5. What the difference between a class and an instance of a class?

A class is actual data. An instance of a class is telling the computer what should be inside that class.
1

6. What is a Proxy object?

A proxy is something that is made different every time. It is used in the MVC pattern.
1

7. What is the purpose of the MVC pattern?

To lock the user out of data. It isn't perfect, but helps. 
1

8. What is the job of the Controller in the MVC Pattern?

It is to tell the service to do something and displaying data. It is like the person taking your order at a fast food restaurant.
1

9. What is the job of the Service in MVC?

The service runs the code. It does the meat of the work and runs the processes. 
1

10. What is the job of the Model in MVC?

The model stores data, and helps make classes of a certain object.
1