Skip to main content

Obama Is First U.S. President To Write Computer Code

You might not have heard of the Hour of Code concept yet, but as it turns out, the U.S. President has, and he has taken part. This makes Barack Obama the first U.S. president to, as far as we know, write a piece of computer code.

The Hour of Code campaign was introduced by Code.org last year. The idea behind the campaign is to convince students of all ages to try following coding tutorials for an hour to show that learning to code isn't as difficult as most people might think.

At the event, Obama did not complete a full hour of the tutorials but rather went around and watched various students work. He did, however, write a couple lines of JavaScript – a programming language that's mostly used in web-based applications.

You could argue that a language like C might do a better job at helping someone figure out how a computer really works, but we'll give credit where credit is due. (I'd be truly impressed, however, if Obama would have taken a crack at an assembly language.)

Have you been curious about coding but scared to give it a shot? Head over to Code.org and have a go at it. It's really not all that hard.

Follow Niels Broekhuijsen @NBroekhuijsen. Follow us @tomshardware, on Facebook and on Google+.

Niels Broekhuijsen

Niels Broekhuijsen is a Contributing Writer for Tom's Hardware US. He reviews cases, water cooling and pc builds.