Teaching Kids to Program

OK, I sat down my niece and nephew before bed, and we had a little period of Intro to Programming. It lasted about 15 minutes. Not their fault at all. I talked to my sister-the-educator about it later and she nodded knowingly. I wasn’t prepared. So I’ve written up the final-state program here. It’s a simple Ruby command line question that has a loop. My niece, who is 9, asked all the right questions. “What are you doing?” being the main one.

Note to self that VI is probably not the best tool, especially as its tiny and doesn’t use the mouse. When I opened BBEdit with all of its colors and bells and whistles, that got a smile.

This is the same niece that has helped me with Cootie Catcher and understands the concept of an iPhone emulator, so she’s already got a head start.

puts "What is your name?"
name = gets.chomp
puts "Hello " + name + "\nYou are awesome\n"
puts "Ask me a question."

question = gets.chomp

puts "You want me to answer: " + question + "?"
response = gets.chomp
response == "No" ? a= "Why not?" : a=  "Giraffe"
puts a
while(response == "No")
  b = gets.chomp
  puts b
  response = gets.chomp
end

3 Comments »

  1. Comment by smart meters

    Posted on August 14, 2010 at 7:55 am

    The program also looks like very easy to move ahead step by step while teaching specially small kids. And this is perfect example shown here and the first program to the kids should be like this.

  2. Pingback by banane » Blog Archive » Notes From the Classroom- TA’ing at High School Comp Sci

    Posted on August 4, 2011 at 1:09 am

    […] High School Girls – More about the program Get SET, at their site GetSET – My first experiment with teaching kids to program (thank you to my somewhat willing niece and nephew, a.k.a. guinea pigs) – Teachign girls to program […]

  3. Pingback by Women 2.0 » Notes From the Classroom: Assisting Teaching at High School Comp Sci

    Posted on August 6, 2011 at 6:01 am

    […] first experiment with teaching kids to program (thank you to my somewhat willing niece and nephew, a.k.a. guinea […]

Leave a comment

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>