Lecture 1 (Pre-Recorded)
Data Flow Diagrams
The functional model of computation
A computation
input(s)
output
COMPUTE
Programming is a psychological discipline
Objects
Everything is an object
Objects and computation
When we do computation, we traffic in objects
Types of Objects (aka Data Types)
object
number
integer
float
function
point
color
picture
string
boolean
exception
contract-violation
arity-mismatch
Calls and data flow
Function calls
Data flow diagrams
Changing the inputs changes the output
Except when it doesn’t
Chaining calls
Chaining chains
A single object can be used as input to many functions
Order of inputs (usually) matters
Different diagrams can produce the same result
Computers are literal-minded
What versus how
What versus how
Gives the first however many
characters of the input string
Big ideas