September 8, 2018

Get started at http://www.coderdojokc.com/today

Welcome to CoderDojoKC! Let’s get you started!

Looking for something to do? Practice your typing skills! Typing.io is a great way to keep your fingers nimble and learn where some of those tricky keys are located.

Step One: Wifi

1. Open up your internet connection and connect to “Fiber Public WiFi

2. Can’t connect? See if you can get to the wifi sign-in at http://google.com/fiber

3. Still can’t connect? Raise your hand and a mentor will get you a hotspot to connect to.

4. We recommend using the Google Chrome browser.

Step Two: Start Learning!

If you don’t know which programming language to start learning, we recommend Scratch (if Scratch is not to your speed, check out the typing.io link in the sidebar on the right).

You will need a parent or guardian’s help to create a Scratch login:

  1. Click “Join Scratch” in the upper right-hand corner of the Scratch site.
  2. Create a username that does not include your real name.
  3. Think of a password that you can remember easily. You should have your parent or guardian write this down and save it.
  4. Click “Next” and continue following the directions. You will need a valid email address (yours or your guardian’s) to continue.

Once you have a Scratch login, use the links below to build something awesome.

Step Three: Learn to Code

1. Are you brand new to coding? Start with Codecademy (recommended for 13 years & up) or Scratch (recommended for 12 years & under).  Want to try building your own phone application? Check out App Inventor! Be sure to create an account and write down your username and password so you won’t forget!

2. Do you have a little coding under your belt? Are you ready to learn more? Check out these fun games:

3. Were you working on a project from our last session? Feel free to continue on that, and ask mentors if you need any help!

4. Get started on the new project. We can’t wait to see what you create!

Step Four: Check Out the Projects

Mastery – Feeling masterful? Check out the requirements for our mastery badges. You can earn cool pins!

Previous Concepts:

Today’s concept: User Input: Multiple Choice

If you ask almost any developer-mentor in this room who they write programs for, they will all tell you that they write them for clients, other people. All of these programs rely upon input from those other people in order to be useful. If you think about the games that you love to play, those games are fun to play because they rely upon some kind of input from you — it could be the press of a button, wiggling a joystick, or typing an answer. Today, we’ll look at the a user selecting an option in order to provide input for your program.

In Scratch, we have one way of getting user input as text: Scratch: Ask and Wait. This will ask for input and store that input as an answer variable that you can use later: Scratch: Answer Variable.

Last month, we asked an open-ended question to fill in text, like “what is your name,” “what is your quest,” or “what is the airspeed velocity of an unladen swallow.” This month, we’ll ask for specific answers to those questions.

Two ways that are recommended for asking questions with specific answers expected is to:

  1. Supply a default answer if an unexpected answer is given.
    Example image to show how to provide a default answer to a question when an expected answer is not entered.
  2. Keep asking the question until an expected answer is given.
    Example image to show how to keep asking a question until an expected answer is entered.

If you ask several questions, you will want to store each of those answers in a different variable before asking another question. Scratch: Set answer to variable

Another option, which we’ll explore next month, is to use buttons.

For today’s session, in order to be eligible for presenting to the group, we want to see at least one usage of getting user input and doing something unique, depending upon that answer.

Examples in Scratch

  1. Mentor Eric “Song Generator – C, G, & D Chords – Key of G
  2. Shawn W “Neutral Zone Patrol
  3. Hayes M. “THEMEANINGOFLIFE

Step Five: Show Off!

Did you create something awesome based off of today’s theme/concept? Come present it on stage! Presentations will start at 11:30 am. At 11:00, come see Mentors Anri and Eric to get a place in line to present. Scratch projects that will be presented will be added the CoderDojoKC – September 2018 studio by a mentor.

Your assignment today is to build something awesome that uses at least one multiple choice question and behave according to the answers given. Have fun!

**Presentations may not contain any politics, violence, gore, or bad words. (And we’re counting “sucks” as a bad word!)