White House Touts Obama's 1-Liner as 2014 Tech Highlight
theodp (442580) writes That President Obama became the first President to write a line of code (as a top Microsoft lobbyist looked on) is #1 on the White House's Top 9 science and technology highlights from 2014. To kick off this year's Hour of Code, the President 'learned to code' by moving a Disney Princess Elsa character 100 pixels on a screen, first by dragging-and-dropping Blockly puzzle pieces and then by coding 1 line of JavaScript. Interestingly, Bill Clinton might have been The First President To Write Code had Microsoft seen fit to use its patented, circa-1995 Graphical Programming System and Method for Enabling a Person to Learn Text-Based Programming — which describes how kids as young as 8-12 years of age can be taught to program by progressing from creating a program using graphical objects to doing so using text-based programming — to teach President Clinton to code some 20 years ago!
Don't get too hard on them, after all it's aimed at +8 years old children. It's kinda reassuring that at least someone at the WH who could run through it.
He did the widget-moving, but he also really wrote a real line of JavaScript.
That was too obvious, and the store employee would kill the program them moment they saw it.
10 PRINT ">";
20 INPUT A$
30 PRINT "ERROR: RADIO SHACK COMPUTER DETECTED"
40 PRINT "OPERATING SYSTEM DISABLED"
50 GOTO 10
That would leave them scratching their heads trying to figure out what was wrong, as it looks just like the normal command prompt but produces the same "error" message after every command typed.