Witchcraft & Code Class Outline

1. Technical troubleshooting

  • Open Paper
  • Open & run first code example
  • Download & open sketch.js file



2. Witchcraft & Programming

What do we think of when we think of programming?
Let’s deconstruct what computing is: it’s the power of electricity & circuits (& binary logic!).
Who is programming for?
What is programing for?
WTF does magic have to do with it? 

Some “Rules” of Intuition That Will Help You:
  1. If you’re confused, STAY OPEN, & let it wash over you.
  1. Be curious.
  1. Kindness is quick, shame is slow. 
  1. Let your self show up.



3. Example Code


Some “Rules” That Will Help You: 
  1. CHANGE ONE THING AT A TIME.
  1. If it doesn’t make a perceptible difference — change it back.  (Command + Z)
  1. Comment out & comment in lines. (Command + /)
  1. Force quit. (Command + Option +Esc) (Control + Alt + Delete)

For Loop:
You’re on a horrible game show.
You have to stay if you have less than 100 dollars.
You have 20 dollars to start.
The only way to make 80 more dollars is by braiding hair. 
Every time you braid hair, you get 2 dollars.
You braid 40 people’s hair, then GTFO. 

for (i = 20; i < 100;  i+=2) {
    braid hair
   }


/ (divide) 
*multiply