33. every lang has loops
• for (a=blah, a<foo, a=a+bar) {...}
• for each (foo in blah) {...}
• for i in range(20): ...
• while (foo != bar) do {...}
• next, continue, break
41. setup, draw
• void: returns nothing
(into the void!)
• setup: prep stuff
• draw: the “animation
loop” or “main”
42. different kinds of “main”
• Processing: draw() is like an
animation “cell”
• in a GUI: the user feedback loop
• command-line app: parse args,
then main()
• web app: the user feedback loop
56. • it says what it is
• it removes a lot of
repeated noise
•it’s kinda overkill here
• we don’t use rp1 and rp2
again
57. no single answer
• design a matter of taste
• sometimes things should
be called what they mean
• sometimes an “int i” is
just an “int i”
• think about what you’ll
understand later