From 834d6e1e632162551bc480d7459e89fa640f5d40 Mon Sep 17 00:00:00 2001 From: natemoo-re Date: Tue, 13 Mar 2018 23:22:40 -0500 Subject: [PATCH 1/2] Add brainstorm and outline --- foundation/00_series-intro.md | 1 + foundation/series-brainstorm.md | 19 +++++++++++++++++++ foundation/series-outline.md | 0 3 files changed, 20 insertions(+) create mode 100644 foundation/series-brainstorm.md create mode 100644 foundation/series-outline.md diff --git a/foundation/00_series-intro.md b/foundation/00_series-intro.md index 239ef96..32958ca 100644 --- a/foundation/00_series-intro.md +++ b/foundation/00_series-intro.md @@ -2,3 +2,4 @@ Welcome to Foundation, a series aimed at making basic programming concepts accessible to everyone. Whether you want to write your own software, build interactive websites, or are just curious how the tools you use everyday work – these videos are for you. + diff --git a/foundation/series-brainstorm.md b/foundation/series-brainstorm.md new file mode 100644 index 0000000..1bdcbf0 --- /dev/null +++ b/foundation/series-brainstorm.md @@ -0,0 +1,19 @@ +(Intro to CS)[https://en.wikiversity.org/wiki/Introduction_to_Computer_Science] + +## Computational Thinking +Formalize the steps needed to take an input and produce an output +- Some form of pseudo-code that walks through a problem +- If/ElseIf/Else +- Loops +- Boolean conditionals +- Functions + +## Introduction to Javascript +What is syntax and why does it matter? +- For loop, expanded syntax +- For loop, shorthand syntax +- Data types in Javascript + - Dynamic language... why? + - Objects + - Built-in objects like Math, Date, etc + - OOP and classes \ No newline at end of file diff --git a/foundation/series-outline.md b/foundation/series-outline.md new file mode 100644 index 0000000..e69de29 From 3a67770d0237c22f9e981e6416df08eac4b9c154 Mon Sep 17 00:00:00 2001 From: natemoo-re Date: Tue, 13 Mar 2018 23:51:28 -0500 Subject: [PATCH 2/2] Add 01_thinking-like-a-computer --- foundation/01_thinking-like-a-computer.md | 38 +++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 foundation/01_thinking-like-a-computer.md diff --git a/foundation/01_thinking-like-a-computer.md b/foundation/01_thinking-like-a-computer.md new file mode 100644 index 0000000..32e439b --- /dev/null +++ b/foundation/01_thinking-like-a-computer.md @@ -0,0 +1,38 @@ +# Thinking Like a Computer +In order to write instructions that we want a computer to run, we need to understand a little bit more about how computers "think." Of course, computers aren't able to reason through a situation like a human might, so that means the thinking is our job. +It should help to visualize programming as moving from some input, like five different numbers, to an output, like the average of those numbers. We can think through the steps it takes to calculate an average, so we simply have to pass along those instructions to the computer. That's really all code is! + +In plain English, we add the numbers together, then divide the sum by how many numbers there are, and we have an average. +Let's write it out. 12 + 8 + 9 + 27 + 19 + +Input ---> Output + +## Morning Routine +Let's say you want to program your morning routine. This is obviously a bit more complex than calculating an average, so we're going to walk through it. + +Your alarm goes off. +If you aren't running late for work, you might hit the snooze once. Loop back to top. +Otherwise, if you are on time + you'll wake up + take a shower + get dressed + have breakfast + brush your teeth + get in your car and drive the speed limit to work +Otherwise, if you're late + you'll wake up + get dressed + brush your teeth + get in your car and speed to work + + We can look at this situation as a series of events that branch off, sort of like a tree. This is how we might start to formulate a "program" for our morning routine. + + + alarmBuzz(); + if (timeLeft > 45) { + + } else if (timeLeft < 45 && timeLeft > 20) { + wakeUp(); + } else { + wakeUp(); + } \ No newline at end of file