Much has been written about the need to involve girls in coding but nothing succeeds like getting them excited about using computers as tools to build what they’re interested in or solving their problems.
It’s not about teaching any particular language — but in getting girls and young women to think computationally, said David Miller, a software engineer at Google. He should know: he has three daughters and he’s taught all of them to code. He also volunteers at the Newton, Mass. branch of Girls Who Code.
He started with his first daughter Sarah, teaching her to write Candyland in Java when she was all of 3 years old. “Here’s the screen, here are five spaces, all red, and she took one look and said ‘That’s not Candyland.'” She was right. There weren’t enough spaces and they were all one color.” So lesson one is to start with something the student is familiar with and try to recreate it on-screen.
“You have to get them to a place where they want to know how to make the computer do what they want it to do,” said Miller who wrote about his efforts on the Google Cloud Platform blog.
Computer literacy is not the goal
There’s a difference between computer literacy and computational thinking. The first is being able to use a word processor to write a story or a spreadsheet to create a budget; the second is breaking a problem down into bite-sized chunks that a computer can handle and string those steps together to do useful work.
Novice programmers have to grasp that at the most basic level, a computer can do four things, Miller said. It can “run steps; remember stuff; repeat things; and make decisions based on test.” In the last case it will perform option A, if this happens or option B if this happens.
He admits that 3-year-old Sarah didn’t express any particular interest in computers or programming, but she went along with dad for a while, then fell away from computing. But she came back. Now 16, she got interested in the 12-tone scale, and decided to write a program to create some music. She wrote the code, ran into a little glitch and called upon dad to help debug the program.
“She found a real application and picked up her skills again,” Miller said. This is the sort of “a ha” moment he hopes more girls have.
His 13-year-old daughter, Ilana, or Lonnie, got a bit more interested in coding than her sister and Miller lauded tools like Pencil Code, a collaborative web site that makes it easy for new programmers to collaborate on projects. Coders can drag and drop graphical blocks of code to create a game or music, and then toggle between the blocks and the actual code. The Khan Academy also has coursework that targets women in technology. (March is women in history month.)