Do we really want to teach everyone to code?

There’s been a lot of noise in the media about learning to code lately. Bill Shorten says all kids should do it. Tony Abbott says it’s a joke, despite it being part of his own party’s education policy. And more recently, Robert Merkel and Robyn McNamara argued that it was not such a great idea for kids to learn coding without the proper theoretical underpinnings.  They talk about the risk of developing “Cowboy Coders” who just want to hack, and who don’t see the point of doing things properly.

There are two problems here. The first is that if we, as educators, can’t help students see the reason for learning something, then we are not teaching it properly. We have a terrible tendency to try to explain the reasons for planning and documenting things properly for problems that can be solved in 10 lines of code. Little wonder kids can’t see the point of careful planning – for a problem that size, there isn’t much point at all.

Or we teach the importance of efficiency when dealing with 100 values, when there is no difference to the naked eye between the best and worst possible algorithms. When your code runs faster than you can say “run time error” regardless of the algorithm you used, it’s hard to see why you would bother with the most efficient code possible. This is not the fault of the students coming in – it’s our fault for not designing the curriculum and the activities so that we can prove their importance.

The second issue is the reason I think it’s crucial that kids meet coding early and often: it’s our image problem. Many kids believe two things:

  1. Coding is a boring, solitary activity done in dark rooms with pizza and coke, by people who don’t like people very much.
  2. Coding is Hard, and I’m no good at it.

Number 2 is often pitched as a gender issue, but I see it as an access issue more than a gender issue. The more exposure you have to coding, the better your chance to find out whether you are any good at it or not – and more importantly, whether you enjoy it. Where it becomes a gender issue is that girls are rarely encouraged, whether by teachers, relatives, or marketing, to play with technology, whereas boys are. Think that’s nonsense? Check out the “shop for girls” vs “shop for boys” images I took from Google last night:

Girls' toys according to Google

Girls’ toys according to Google

Boys' toys according to Google

Boys’ toys according to Google

Actually the contrast there makes me feel rather ill, but that’s another post.

Kids who meet code get to find out that they can do it, that it can be fun, and that it’s not a solitary activity for antisocial pizzavores. I’ve lost count of the number of students who have told me, often with some degree of shock, that they’re actually enjoying this code stuff in ways they never expected to. If they’d never tried it, they’d never have had the chance to find that out. And that would be a tragedy.

In fact, the cowboy coders that Merkel and McNamara describe are precisely the people who were attracted to coding because of its solitary, dark-room, caffeine fuelled image. If we introduce a wide variety of people to coding, and present it as a collaborative, exciting activity, we have the chance attract a whole different set of personalities to computer science. People who are attracted to the discipline for a whole new set of reasons, who can bring a whole new perspective to it. I’ve already seen this happen at my school.

More importantly, a whole new set of people can find out whether code is something they are interested in. There are huge numbers of people out there who would be great at code if they ever had the chance to find out.

The first step, of course, is finding the teachers who would be great at code, given the chance, and giving them that chance. Without enthusiastic, skilled teachers, the whole idea is going to fall very flat indeed.

Advertisements

About lindamciver

Australian Freelance Writer, Teacher, & Computer Scientist
This entry was posted in Uncategorized and tagged , , , , , , , . Bookmark the permalink.

4 Responses to Do we really want to teach everyone to code?

  1. tobiasjs says:

    Left a long post but WordPress ate it.

    Rob Pike’s 5 rules of code.

    Plenty of room for cowboy coders.

    Programming and statistical literacy key skills modern life.

  2. Robert M says:

    Hi Linda,

    Thanks for this!

    I replied to your comment over at The Conversation, but to expand on a point I made there, while you might be able to deliver high-quality teaching in programming at your school, members of my extended family are primary school teachers in rural Victoria.

    Are they going to be provided with the kind of training that will permit them to provide anything like the level of guidance and feedback that kids at your school get?

    My (perhaps cynical) is that “coding” will involve kids being let loose on code.org or something like it, with teachers who might have read the prep notes but don’t really have any feel at all for the concepts behind it and can’t provide any useful constructive feedback to those kids who *do* end up taking to it.

    • lindamciver says:

      Training is a huge issue Rob, and I started to go into it before realising that it was a whole blog in itself, so I left it for another time. We need to train teachers, and then support them after training (and training will take more than a day!), and the chances of it being done properly are next to nil: witness science teaching in primary schools!

      But I still think kids meeting code is better than kids never meeting code.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s