Classroom Programming
page was last updated: Sep 07, 2016 04:11
forum
sorry ): this page is incomplete. feel free to ask me directly for any help ^_^
Primer A0
My tutorials wont make you a good programmer (: It's just intended to be a easy starting point or helper.
If anything, the only good parts is maybe this primer, and the extras (potatoes) section.

Mindset

Programming. Instructions that tell a computer what to do. However, computers are stupid. They ONLY do what they know how to do (blah blah AI, beyond the scope and not quite there yet anyways). The first hurtle to get over is how you think about accomplishing a certain task. Let's say "drink from cup" is our task. You gotta break it down to small individual tasks that we take for granted (yay muscle memory).


What kids may think
  1. move hand around cup
  2. grip
  3. bring to mouth
  4. pour into mouth
  5. swallow
What a programming language may do
  1. move hand x feet
  2. close finger 1
  3. close finger 2
  4. close finger 3
  5. close finger 4
  6. close finger 5
  7. raise arm x inches
  8. bend elbow
  9. raise arm x inches
  10. open lips
  11. raise arm x inches
  12. open throat
  13. close throat
What assembly does

Now, this is just the mindset needed and NOT the way it will always be! Remember, a programmer makes programs for the computer to work for the user. BUT that user is also YOU!. Once you get to functions, you can make it as simple as just a couple of steps. For instance, a function could be called "CloseHand" which closes all 5 fingers in one line.

Mindset while learning...

Here's a few things to think of when first learning to program.
Some of these things are just flat out wrong/false, but it'll simplify things if you just take it like this for now.

  1. Be explicit. Dont assume computers will do more than its told unless you know 100% sure. They only do what they tell you to do.
  2. A program is linear. It only does one task at a time. Your program will only go line by line IN ORDER.
  3. If the shoe fits, it'll take it. This wont make much sense now, but if types match, it doesn't care. If you put a number for shoe size where a number for toe size goes, IT WILL WORK! Because they are both just numbers (: