Skip to content

Instantly share code, notes, and snippets.

@hornej
Last active November 6, 2017 06:08
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 hornej/aa74d50a3174fdf4e227c7b65e2deadb to your computer and use it in GitHub Desktop.
Save hornej/aa74d50a3174fdf4e227c7b65e2deadb to your computer and use it in GitHub Desktop.
resources, learning, etc.

Object Oriented Programming

The goal is to modularize.

Examples: Objective-C, Java, Swift

A Class is the blueprint for an Object.

An Object includes Properties, Actions, and Events.

Class Outside of Class
Methods Functions
Properties Constants/Variables

Objects encapsulate complexity.

Udemy

Design pattern: the best practice solution to a common problem

"MVC" design pattern

Model: structures the data

View: what the user sees on screen

Controller: communicates between the view and the model

Simple Analogy:

data = ingredients

model = chef

controller = waiter

view = dinner plate

Advantages

  1. Provides structure

  2. Recognizable by third parties

  3. Code reuse

  4. Multitasking

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment