Docsity

Teaching Computer Science - Introduction to Computer Science - Lecture Slides, Slides of Computer Science

Partial preview of the text

Download Teaching Computer Science - Introduction to Computer Science - Lecture Slides and more Slides Computer Science in PDF only on Docsity!

Teaching Computer Science

from K through 12

Motivation & Background

  • “How can we best teach programming?”
    • Desire to teach our own kids, their friends, …
  • Teaching experience
    • From University to pre-K
    • Teaching K-7 for past 6 years
      • Programming (5 th^ – 8th) for past year
  • Google K-12 intergrouplet
    • “bottom-up” self organized group; 20% time

Filling the Pipeline

  • Working backwards:
    • To graduate more MS/PhDs, you need more students entering the BS programs
    • To get more students entering the BS programs, you need to spark interest in HS
  • Focusing on HS seems obvious
  • But...

Problems with starting in HS

  • Inconsistent skill set
    • Huge disparity between students
      • WRT computer literacy
    • Unlike Math, English, Science, ...
  • Stereotypes already established
    • Peer pressure
    • “You’re not supposed to be interested in ...”
    • Typically happens around/before 8th^ grade

A Brief Diversion

  • Before we talk about goals, a slight aside:
    • How does a phone work?
    • How does a toilet work?
    • How does a car work?
      • Internal combustion engine
  • We can explain how these devices work in

general, accessible terms

  • Concrete, physical explanation

A Brief Diversion (cont.)

  • Now, how do computers work?
    • Many explanations go something like:
      • Mumbling something about ‘0’s and ‘1’s
      • Talk about memory, CPU, ALU
    • These aren’t wrong, but they aren’t concrete
      • Not accessible to many students
      • They don’t walk away with a real understanding

Goals for Teaching Computer

Science in K-

  • Three goals:
    • Demystify computers for students in general
    • Encourage students to learn programming
      • Spark interest in computer science
    • Provide tools for parents/educators

Goals for Teaching Computer

Science in K-

  • First two goals are related:
    • Introduce programming and demystify computers early enough so that: - We don’t have to fight social issues - We’re more likely to ignite that spark of interest
  • Last goal can be broken into 2 sub-goals
    • Create ready-to-use materials
    • Formalize the teaching of computer skills
      • What students should know at each grade level

When to introduce programming

  • We should start teaching programming:
    • After the ability to think abstractly
    • Before stereotypes/societal influences
  • Roughly between 6th^ to 8 th^ grade
    • Some students are ready in 5 th^ grade
  • Note: We don’t expect students to master programming at this age - Introduce, gain confidence, spark interest

Case Study

  • Teaching programming to 5th^ -8 th^ graders:
    • Using a computer engineering approach
    • Work from bottom-up
      • Start with electricity, work up to programming
    • Class running for over a year
      • At a local Montessori school (Bothell, WA)
    • Each student has a project
      • Create a Gameboy Advance (GBA) game

General Overview of Class

  • Number systems: binary, hexadecimal
  • Electricity, voltage
  • Transistors, gates
  • Boolean logic
  • Hardware: LEDs, 4000-series CMOS
  • Memory, address decoders
  • Storing things in memory (images, text)
  • CPU: registers, instructions
  • Programming:
    • Compiler, handling errors
    • Variables, control flow, ...
    • Programming tasks/tutorials

Why GBA Programming

  • Use games to introduce programming
    • Motivation is key to learning to program
    • GBA programming motivates from K through University
  • Real programming language: C/C++
  • Students can create entire project
    • 2-D project
    • Easily create their own art assets: http://code.google.com/p/spritely
    • Ownership of the project; sense of accomplishment
  • Easier to make link down to hardware
    • No operating system, virtual machine
    • Can link from transistors, memory, CPU, assembly language to the students program

Contrasts with our approach

  • These other approaches typically:
    • Run in a limited “sandbox” environment
    • Very object-oriented
    • Focus on drag-n-drop instead of typing
      • Avoids problems with typos and syntax errors
    • Use pre-generated graphics
      • Don’t have to create their own art assets
      • Can use professionally-made graphics
  • and sometimes:
    • Provide a 3-D virtual world

Which approach is “better”?

  • They each have pros/cons
    • Students will prefer one over the other
  • Our approach is motivated by a desire to:
    • Connect programming & hardware
    • Give a real world programming experience
  • But it suffers from:
    • Requiring text programming/compiling
    • More limited debugging facilities
  • We’re trying to build a strong foundation
    • Expect students to take other programming classes
      • Java, C#, C++, …