Slashdot Mirror


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!

65 comments

  1. Summary is misleading by bondsbw · · Score: 4, Informative

    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.

    --
    All my liberal friends think I'm a conservative, all my conservative friends think I'm a liberal.
  2. Hello World! by Irate+Engineer · · Score: 4, Funny

    That would be such an appropriate first line of code for the POTUS, in so many ways.

    --

    Left MS Windows for Linux Mint and never looked back!

    Vote for Bernie in 2016!

    1. Re:Hello World! by gweihir · · Score: 1

      Naaaa, too difficult.

      --
      Most ACs are not even worth the keystrokes to insult them. Be generically insulted by this and ignored otherwise.
  3. Re:Let's not us forget... by Anonymous Coward · · Score: 0, Funny

    Obama would be no where if Al Goare didn't invent the Internet first!

    Hello. I am Albert Goare. Why are you saying I invented the internet?

  4. Retail griefing circa 1984 by greg1104 · · Score: 4, Funny

    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?

    1. Re:Retail griefing circa 1984 by TeknoHog · · Score: 1
      Kind of

      puts "the run in RUN"

      dontcha think?

      --
      Escher was the first MC and Giger invented the HR department.
    2. Re:Retail griefing circa 1984 by Anonymous Coward · · Score: 1

      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.

    3. Re: Retail griefing circa 1984 by Anonymous Coward · · Score: 1

      That's just basic!

    4. Re:Retail griefing circa 1984 by Anonymous Coward · · Score: 0

      Nice. When Worst Buy first came out--or maybe I'm just thinking about Circuit Sucky--this was back in the '90s when Win95 came out, autoexec.bat was still executed on boot (DOS holdover, I guess), and I'd go by every computer in the store in Savannah and have it execute some batch file named "gold.bat" which, of course, pointed to itself. Hit the reset button, and the rest is lulz.

    5. Re:Retail griefing circa 1984 by ultranova · · Score: 1

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

      --

      Forget magic. Any technology distinguishable from divine power is insufficiently advanced.

    6. Re:Retail griefing circa 1984 by Solandri · · Score: 3, Interesting

      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.

  5. Did he.. by x0ra · · Score: 1

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

    1. Re:Did he.. by marcello_dl · · Score: 1

      > .. 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?

      --
      ---- MISSING MISCELLANEOUS DATA SEGMENT --- [sigdash] trolololol
    2. Re:Did he.. by Frosty+Piss · · Score: 0

      .. 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.

      --
      If you want news from today, you have to come back tomorrow.
    3. Re:Did he.. by Anonymous Coward · · Score: 0

      If here isn't, where is?

    4. Re:Did he.. by MacTO · · Score: 2

      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.

    5. Re:Did he.. by Otome · · Score: 3, Interesting

      He did the widget-moving, but he also really wrote a real line of JavaScript.

    6. Re:Did he.. by jd2112 · · Score: 2

      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...

      --
      Any insufficiently advanced magic is indistinguishable from technology.
    7. Re:Did he.. by Deep+Esophagus · · Score: 1

      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.

      I wouldn't object so much if this exercise were just the introductory step ("Now that you've seen how the command blocks create actual programming instructions, let's learn about conditional branching!")

  6. Turtle art by bergerjs · · Score: 2

    Clinton could have used LOGO's turtle to draw the first presidential digital dick pic

    1. Re:Turtle art by greg1104 · · Score: 3, Informative

      He could have worked with Dick Pick and written it in Microdata's S-BASIC.

    2. Re:Turtle art by BForrester · · Score: 1

      Clinton could have used LOGO's turtle to draw the first presidential digital dick pic

      I'd think that a LOGO rendition of President Nixon would actually be pretty impressive.

  7. Re:So this just proves.. by x0ra · · Score: 3, Interesting

    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.

  8. Did I read this right? by Hognoxious · · Score: 1

    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?

    --
    Confucius say, "Find worm in apple - bad. Find half a worm - worse."
  9. well, they need to Tout something by turkeydance · · Score: 1

    that wasn't a total loss.

  10. Give him ANOTHER Nobel Prize for that by Anonymous Coward · · Score: 0

    At least this time he would have actually DONE something.

  11. White House Hosts Next Generation' Young and Rich by theodp · · Score: 1

    #10? White House Hosts Next Generation' Young and Rich: "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.."

  12. Programming Experience Could Be Good by Irate+Engineer · · Score: 1

    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!".

    --

    Left MS Windows for Linux Mint and never looked back!

    Vote for Bernie in 2016!

    1. Re:Programming Experience Could Be Good by Anonymous Coward · · Score: 0

      Actually wouldn't it be nice if more people in government already had some idea of how coding works? I mean home computers have been around for 30+years and most Congress-types went to the finest schools in the land, so why the hell didn't they take a few simple courses. Being ignorant of the main technology of the past few decades doesn't endear me to politicians.

    2. Re:Programming Experience Could Be Good by __aaltlg1547 · · Score: 1

      Plenty of them did. You just don't hear about it because it's NOT NEWS.

  13. OMG, who cares? by Pope+Hagbard · · Score: 3, Insightful

    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?

    1. Re:OMG, who cares? by Anonymous Coward · · Score: 0

      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.

      Yes it does. Of course it does. Clicks make money. Articles, even bad ones, make clicks (like yours and mine to this very article). The irony is that your post clearly intends to punish them for posting a dumb article, but by making your post you rewarded them for precisely that.

    2. Re:OMG, who cares? by Pope+Hagbard · · Score: 1

      Joke's on them: I'm running Privacy Badger, which as a side effect blocks their ads - doubleclick.net and scorecardresearch.com are blocked.

    3. Re:OMG, who cares? by drinkypoo · · Score: 2

      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!

      --
      "You're right," Fisheye says. "I should have set it on 'whip' or 'chop.'"
  14. Woohoo flame war! by Anonymous Coward · · Score: 0

    Here's my contribution:

    I have worked with both C# and VB.Net for about a decade now. I have a long list of happy clients, too. The only time I ever used a visual designer for anything was when laying out a report using RDL.

    I know enough about both to know that they are equivalent. Any problem you can solve in one you can solve in the other. And performance is equivalent too. The bias against VB.Net is just a holdover from how things used to be, before .net.

    Those who disagree are just ignorant of the facts.

  15. Strawman Scare Quotes by Anonymous Coward · · Score: 0

    Before I need a president who can code, I need a Slashdot editor who understands that quotation marks around a questionable phrase that was neither stated nor implied in any of the linked articles does not belong in a fucking summary.

    [captcha: facets]

  16. Uh, no by jason777 · · Score: 0

    Uh, no he didnt write a line of code. The line he wrote was:
    moveForward(100);
    and I'm sure someone told him what the function was called to move forward. Thats not really writing a line of code.

    1. Re:Uh, no by Anonymous Coward · · Score: 2, Funny

      Actually yeah, that is writing a line of code. It's calling a function, it's one line and incredibly simple, but so is this:

      print("Fuck you.")

      Python3 no less. Are you actually brainless enough to argue that because someone else taught him how to do it, it's not coding? That's a level of narcissism that's rare even for low ID lusers on Slashdot. I'm guessing if you program at all, you do so because you either were taught to do so or read tutorials written by someone else...yet according to your own rules, that would mean you're not a programmer at all.

      10 print "You, jason777, are a self-important twit."
      20 goto 10

    2. Re: Uh, no by Anonymous Coward · · Score: 0

      he wrote a line of code one time. he was told exactly what to write. he wrote the line of code but he isn't programming. he is just following instructions. anyone can do what he did.

  17. Great. Now replace him with an Indian. by Anonymous Coward · · Score: 0

    Bobby Jindal would do nicely.

  18. Re:So this just proves.. by msauve · · Score: 2

    " it's aimed at +8 years old children. "

    So, Congress? I assume you're referring to mental, not physical, age.

    --
    "National Security is the chief cause of national insecurity." - Celine's First Law
  19. Vice-President already been done Re:Turtle art by Anonymous Coward · · Score: 1

    For years, every picture of Cheney was a Vice Presidential Dick Pic.

  20. It's the thought that counts by iamacat · · Score: 2

    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.

    1. Re:It's the thought that counts by Anonymous Coward · · Score: 0

      This. My PHB doesn't bother me because I know that his role is not to be technical!

  21. Congress already attained +8 year old mentality? by Anonymous Coward · · Score: 0

    Seeing the temper tantrum them D.C. critters throw every so often I would guess that their average cerebral capacity be at the toddler level, lower than 4 year of age

  22. You mean first POTUS to program while in office? by RevWaldo · · Score: 1

    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.

    .

  23. Same level as his understanding of Constitution by Anonymous Coward · · Score: 0

    A dog could write THAT first line of code...

    The carry through is the hard part.

    BTW for obama to have been president of the Harvard Law Review what important paper did he present to have him qualify? Besides his color and that university wanting to be in on a 'we got one too' fad ?

  24. Prez Carter by Anonymous Coward · · Score: 0

    Carter is an engineer if not mistaken. So I'll be surprised if he doesn't know a thing or two about computers.

  25. Re:So this just proves.. by Anonymous Coward · · Score: 0

    Damn, does it feel good to be a gangsta?

  26. that's wonderful! by night_flyer · · Score: 1

    now he can fix healthcare.gov

    --


    Thanks to file sharing, I purchase more CDs
    Thanks to the RIAA, I buy them used...
  27. Re:You mean first POTUS to program while in office by __aaltlg1547 · · Score: 1

    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.

  28. Hopefully the last "me, me. me, me" President by MooseMiester · · Score: 1

    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 make a story out of every little thing he does, no matter how stupid it is... He or She will act... well... Presidential. It's no wonder the world is laughing at us and ignoring us these days. How can you take this guy seriously? Clearly he walks around all day thinking Me, Me, Me, Me, Me, Look at me, Me, Me, Me, Me, Me... It's embarrassing.

    --
    Murphy was an optimist
    1. Re: Hopefully the last "me, me. me, me" President by Anonymous Coward · · Score: 0

      LOLOLOL you are delusional. every president does this.

      you remember when bush stood in front of troops and the press and said mission accomplished? yea mission wasn't accomplished. that was just bush showing his ass thinking he did something.

      they are all the same. soon as we realize this, the better.

  29. Re:Let's not us forget... by Anonymous Coward · · Score: 0

    Hello,

    I am the real Albert Goare, and I really did invent the Internet. And my patent on it is pending.

    So, I own it. Please start sending your license fee payments to me, in form of money orders to the PO Box I will shortly be posting here.

    I'm not greedy, I only require one dollar from everyone who has ever used the Internet, and I will be happy to send you a ten year license for your continued use of the Internet.

    Thank you,

    Albert Goare, Ph.D., Litt.D., GBE, VC, DSO, MC

  30. What by brunnegd · · Score: 1

    BFD

  31. MMMKKK by Anonymous Coward · · Score: 0

    Estonian president Mr. Ilves has supposedly worked as a programmer in the past, before becoming president...