Slashdot is powered by your submissions, so send in your scoop

 



Forgot your password?
typodupeerror
×
Education Government Programming United States

White House Touts Obama's 1-Liner as 2014 Tech Highlight 65

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!
This discussion has been archived. No new comments can be posted.

White House Touts Obama's 1-Liner as 2014 Tech Highlight

Comments Filter:
  • by bondsbw ( 888959 ) on Saturday December 27, 2014 @05:46PM (#48681711)

    This is not a Top 9 science and technology highlights from 2014, as curated by the White House. This is a Top 9 science and technology highlights that happened at the White House.

    Big difference.

  • by Irate Engineer ( 2814313 ) on Saturday December 27, 2014 @05:50PM (#48681735)
    That would be such an appropriate first line of code for the POTUS, in so many ways.
  • by greg1104 ( 461138 ) <gsmith@gregsmith.com> on Saturday December 27, 2014 @05:59PM (#48681779) Homepage

    Back in the day, this used to be a popular first programming exercise:

    10 PRINT "RADIO SHACK SUCKS!!!"
    20 GOTO 10
    RUN

    I wonder if we could get more kids to code if there was still a simple programming language that sped up trolling for lulz at the mall?

    • Kind of

      puts "the run in RUN"

      dontcha think?

    • by Anonymous Coward

      We used to do that in sunny England, circa the 80s. Favourite machine BBC or Acorn Electron as with a couple of lines of basic you could also disable the Escape key and Break. Result: Computer shop guy horrified as he tries to stop a multicoloured 'fuck off!!!!' scrolling up the screen.

    • by Anonymous Coward

      That's just basic!

    • main = putStrLn "RADIO SHACK SUCKS!!!" >> main

    • by Solandri ( 704621 ) on Sunday December 28, 2014 @12:51PM (#48685043)

      10 PRINT "RADIO SHACK SUCKS!!!"
      20 GOTO 10
      RUN

      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.

  • .. actually write a real line of code, or did he just moved some widgets around a pushed a button ?
    • > .. actually write a real line of code, or did he just moved some widgets around a pushed a button ?

      Does this seem to you the right place to start a real programming language vs. visual basic flamewar?

    • .. actually write a real line of code, or did he just moved some widgets around a pushed a button ?

      I'm sure there will be many jokes, but it's irrelevent. He's *not* a coder, and neither in my auto mechanic or doctor.

    • by MacTO ( 1161105 )

      It's a symbolic gesture. I doubt that many people expect the president to learn programming while in office. They have many other affairs to take care of.

      • by jd2112 ( 1535857 )

        It's a symbolic gesture. I doubt that many people expect the president to learn programming while in office. They have many other affairs to take care of.

        You must be thinking of Bill Clinton...

      • That's my whole problem with the "hour of code": It's a symbolic gesture. At no point do the students ever actually write code; they just drag command blocks into place, all the while being told what to drag and where to place it. Even if they use the "View code" button, they only see the LOGO-like commands without any of the program structure around it. When my daughter was 10, she was writing graphic games of her own design in QuickBASIC. Kids are capable of so much more than this walled garden assumes

    • Re: (Score:3, Interesting)

      by Otome ( 2999075 )
      He did the widget-moving, but he also really wrote a real line of JavaScript.
  • Clinton could have used LOGO's turtle to draw the first presidential digital dick pic
  • Something happened for the first time. But if it had happened before, then that would have been the first time and this wouldn't. But it didn't, so this is, not that.

    There's not much gets past theodp, is there?

  • that wasn't a total loss.
  • #10? White House Hosts Next Generation' Young and Rich [nytimes.com]: "The daylong conference was organized by Thomas Kalil, a deputy director for technology and innovation in the White House Office of Science and Technology Policy, with the help of Nexus, a youth organization based in Washington that seeks to "catalyze" the next generation of billionaire philanthropists and other stakeholders.."

  • Showing people in government how to program is probably not a bad idea. Maybe they can sort out the spaghetti coded laws that we have and actually get things to run correctly.

    Nah, they'll just say "It's not a bug, it's a FEATURE!".

  • OMG, who cares? (Score:4, Insightful)

    by Pope Hagbard ( 3897945 ) on Saturday December 27, 2014 @07:15PM (#48682019) Journal

    Just because it's a slow news day, it doesn't follow that you have to post any old non-news just to keep the clicks going. Is there nothing interesting going on in science, technology, space, or other nerdy topics?

    • Just because it's a slow news day, it doesn't follow that you have to post any old non-news just to keep the clicks going.

      It worked on you. Mission accomplished!

  • by iamacat ( 583406 ) on Saturday December 27, 2014 @10:08PM (#48682531)

    We don't need our presidents to know how to code, or to be scientists. We do need them to appreciate that coding and science are important, listen to the experts and encourage general public to do the same. I'll take one line of Javascript over "I am not a scientist" excuses right away.

  • I'm sure some fundamental CS work came up in college for our recent presidents in the past fifty years. Nuclear engineer Jimmy Carter and MBA George W Bush in particular come to mind.

    .
    • Carter graduated from the Naval Academy in 1946. Clinton studied politics and law in the 60's and early 70's. There wasn't much chance back then to program in those programs. However, Clinton had a reputation of being always curious about details and it wouldn't be at all surprising if he asked somebody to show him how to make a computer do what he wanted it to do at some point, maybe to help Chelsea with her schoolwork.

  • now he can fix healthcare.gov

  • To think back at the vitriolic hate that was thrown at Dubya.... He was a stupid buffoon, an ignorant hayseed, a country cowboy... And then we got "The smartest man ever elected to the office" and he turned into an even bigger buffoon with his incessant need to be in the press, on TV, his picture plastered everywhere, all the time, for no reason other than to highlight HIM and his latest action, no matter how trivial.

    Surely the next Zaphod Beeblebrox we elect won't go on Oprah, or the Tonight Show, or m
  • BFD

Genius is ten percent inspiration and fifty percent capital gains.

Working...