Professional Documents
Culture Documents
Intro to Programming
What is programming?
o What is a program?
A set of instructions
Object-oriented programming
o Object-oriented programming (OOP) is a programming paradigm based
on the concept of "objects", which are data structures that contain data, in
the form of fields, often known as attributes; and code, in the form of
procedures, often known as methods.
o Objects – structures that contain data attributes and methods
I.e. a pizza object might have attributes like toppings
o Classes – definitions for data and methods for a given type of class or
object
I.e.. classes are like a pizza recipe
o Data types
String – list/sequences of characters
Integers
Arrays – ordered, integer-indexed sets of objects
Associative arrays or hashes: unordered key-value pairs
Variables – you can assign data to a variable (e.g. x = “rosie”, x => rosie)
Data manipulation – methods are used to access information about objects. You
can use built-in methods or also write your own
Language before framework
What is a framework? – Software that supports development of dynamic
websites and provides a file structure
o I.e. MVC – frameworks are what provide you with the structure past that.
Models, views, controllers, router, browser
Static vs. dynamic web pages
o Static – delivered to the user exactly as it’s stored
o Dynamic – content on the page changes depending on user interaction
Other tools
o we