Leave a comment

Obama wrote a line of JavaScript code yesterday

Obama wrote a line of JavaScript code yesterday
Ali Partovi/Facebook

The Commander-in-Chief is now the Coder-in-Chief. President Obama became the first sitting president to write a computer program in office. Maybe we should start calling it the "executable branch!" I kid.

But you might be asking yourself, why is President Obama writing computer code?

It's Computer Science Education Week, of course! And within Computer Science Education Week, there's the Hour of Code, where people can try out one hour of programming to learn the basics.

Obama decided to get a little bit more hands-on this year versus last, writing a simple computer program that draws a square on a screen. That's it. He used Google's Blockly tool and wrote his code using JavaScript.

It doesn't seem like much, but Code.org's co-founder Hadi Partovi says:

"It was a very simple program—all it does is draw a square on a screen—but that’s the point ... All programming starts simple. No one starts by creating a complicated game.”

Next page: Find out more about the president's code.
ATM wiretapping: Look for these tamper signs before you use ATMs
Previous Happening Now

ATM wiretapping: Look for these tamper signs before you use ATMs

Haggle for better prices on Amazon
Next Happening Now

Haggle for better prices on Amazon

View Comments ()