TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Obama Becomes First President to Write a Computer Program

265 pointsby keithbaover 10 years ago

30 comments

karmacondonover 10 years ago
This is actually a big deal. Obama&#x27;s code wasn&#x27;t very useful or complicated but that obviously wasn&#x27;t the point. The point here was that a 53 year old african american man sat down and learned to write a program, any program. It&#x27;s much more unlikely than it sounds. Do you know what it would take to convince my mother to write a program that draws a square on a screen? We&#x27;re talking moving heaven and earth here. If I suggest booking tickets on expedia instead of calling her travel agent she&#x27;s like &quot;What am I, some kind of nerd?&quot;<p>Obama is leading by example. He and his biggest supporters are people who never in their lives imagined that they would ever write a computer program or anything close to it. There&#x27;s a cultural barrier that&#x27;s hard for most of us to see, a clear demarcation between most people&#x27;s daily lives and the idea of writing even the simplest program. Crossing that barrier is hard, real hard, and I am surprised and encouraged that Obama took the plunge.<p>Code literacy is important, not so that the average person can become a 10X engineer but so that they can understand what&#x27;s happening in the world around them on another level. It&#x27;s the same reason that people should learn physics or chemistry or biology. Because these processes control our world and a basic understanding of them, even if we don&#x27;t use it professionally, can help give people valuable context. Hopefully this kicks off more interest in learning the basics so that in ten years the sales guy won&#x27;t think that coding a full featured CRM from scratch will take you a couple of hours over the weekend. We&#x27;re moving toward a more automated world and the value of understanding it is increasing exponentially.
评论 #8721334 未加载
评论 #8721283 未加载
评论 #8721856 未加载
评论 #8721992 未加载
评论 #8722072 未加载
downandoutover 10 years ago
It&#x27;s somewhat amazing how far, in 2014, people can get without any tech expertise at all. It&#x27;s not just Obama and other prominent politicians. There are countless incredibly successful business people that are lucky to turn on a computer.<p>When I was barely out of high school, I briefly consulted for a guy that had built a net worth in excess of $100 million from scratch with a very successful chain of auto body shops. I was first introduced to him after his son told me that a few days prior, his father&#x27;s computer came up with a message box saying that a program had &quot;performed an illegal operation&quot;. He yanked the power cord out of the wall and began contemplating what he would say to the police when they came.<p>Last year, Steve Wynn, billionaire casino mogul, was accused of threatening the life of Girls Gone Wild founder Joe Francis via email over a $2 million gambling debt. Steve won a defamation lawsuit, with his primary argument being that he couldn&#x27;t possibly have done it because he had never sent an email in his life.<p>While technology is an integral part of our world, the most crucial skill for leaders isn&#x27;t being able to code or necessarily even operate it. It&#x27;s being able to identify what needs to be done, then building and managing teams that can get things done. If you can do that, you can accomplish almost anything.
评论 #8721417 未加载
评论 #8721187 未加载
评论 #8721203 未加载
评论 #8721199 未加载
jaybuffover 10 years ago
He implemented bubble sort:<p><a href="https://www.youtube.com/watch?v=k4RRi_ntQc8" rel="nofollow">https:&#x2F;&#x2F;www.youtube.com&#x2F;watch?v=k4RRi_ntQc8</a>
评论 #8720485 未加载
评论 #8720471 未加载
评论 #8720769 未加载
pbiggarover 10 years ago
A little dissappointed they didn&#x27;t link to the code. Here&#x27;s Irish Prime Minister Enda Kenny&#x27;s Hour of Code work:<p><a href="http://studio.code.org/sh/32532000" rel="nofollow">http:&#x2F;&#x2F;studio.code.org&#x2F;sh&#x2F;32532000</a><p>(<a href="http://www.siliconrepublic.com/innovation/item/39544-wit2014" rel="nofollow">http:&#x2F;&#x2F;www.siliconrepublic.com&#x2F;innovation&#x2F;item&#x2F;39544-wit2014</a>)
评论 #8721053 未加载
评论 #8722098 未加载
评论 #8720643 未加载
wyagerover 10 years ago
Clearly most people are not going to spend a lot of time learning the rigorous theory behind CS, or how to write really high quality software that&#x27;s meant to be reused.<p>However, I suspect that coding will become the new literacy. It&#x27;s becoming an essential life skill, but only a few people need to be really good at it; most people just need a basic functional knowledge.
评论 #8720481 未加载
评论 #8720409 未加载
评论 #8720395 未加载
评论 #8720382 未加载
评论 #8720433 未加载
binarnospover 10 years ago
&gt; &quot;everyone should learn how to code&quot;<p>Why not &quot;Everyone should learn how to fix a broken pipe&quot; or &quot;Everyone should learn how to cook&quot; or whatever?<p>Here is mine: &quot;everyone should follow his own passions&quot;
评论 #8722000 未加载
评论 #8723321 未加载
mfisher87over 10 years ago
Is there an editor on staff at Wired?<p>&gt;Obama wrote his code part of event today organized by Code.org, which brought brought 20 middle school students from the South Seventeenth Street School in Newark, New Jersey, to the White House, where they met the president and worked on Hour of Code tutorials.<p>&gt;Last year, Obama delivered a YouTube speech last year[...]
评论 #8721026 未加载
评论 #8721059 未加载
hoodoofover 10 years ago
Is it open source?<p>Maybe we should fork it and turn it into a bigger project.<p>&quot;President&#x27;s work gets forked&quot;.
评论 #8720815 未加载
sloanesturzover 10 years ago
But did he use Vim or Emacs?!
评论 #8720541 未加载
评论 #8721082 未加载
评论 #8720781 未加载
评论 #8721506 未加载
Alohaover 10 years ago
I wouldnt be surprised if a president had written VBA before. Excel is everywhere.
评论 #8720744 未加载
评论 #8720934 未加载
eccstartupover 10 years ago
That encourages programmers to become a president.
评论 #8721000 未加载
评论 #8720862 未加载
rbanffyover 10 years ago
I can almost bet Angela Merkel has written some FORTRAN code before entering politics. Her job is, however, &quot;Chancellor&quot;.
评论 #8721477 未加载
Maxiousover 10 years ago
Only 15 years since the first president to send an email! <a href="http://tech.firstpost.com/news-analysis/laptop-used-clinton-first-us-presidential-email-auctioned-60667-222031.html" rel="nofollow">http:&#x2F;&#x2F;tech.firstpost.com&#x2F;news-analysis&#x2F;laptop-used-clinton-...</a>
dnauticsover 10 years ago
You don&#x27;t suppose jimmy carter wrote code? He was a nuclear engineer.
JackTheBlackover 10 years ago
When we started to learn robotics, our first assignment was to teach the robot to draw a square.<p>Its actually a good &quot;hello world&quot; exercise: <a href="http://youtu.be/RmfP2rHV7io" rel="nofollow">http:&#x2F;&#x2F;youtu.be&#x2F;RmfP2rHV7io</a>
merittover 10 years ago
I bet his inbox is already filled with tech recruiter spam.
评论 #8721262 未加载
uptownover 10 years ago
Bloomberg never learned to code, despite his tweet.
pknerdover 10 years ago
Hmm..hope he will be using his night time to write open source code rather than thinking of war policies that don&#x27;t work.
BerislavLopacover 10 years ago
I have a feeling that moveForward(100) might become a new meme... ;-)
评论 #8723146 未加载
ojnover 10 years ago
That&#x27;s a Chromebook he&#x27;s doing it on! Acer 11&quot; CB3.
dmakover 10 years ago
I would like to see his code in github
评论 #8721095 未加载
erickhillover 10 years ago
Gore woulda coulda shoulda been the first. But let&#x27;s not go there... He definitely got the internet thing, too.
Istofover 10 years ago
I hope this is not true and that other presidents gave it a go.
finishingmoveover 10 years ago
Next up: PutinOS
adamioover 10 years ago
This is the first step towards outsourcing the presidency
评论 #8721330 未加载
richardjordanover 10 years ago
<p><pre><code> 10 PRINT &quot;HELLO WORLD&quot; 20 GOTO GUANTANAMO BAY</code></pre>
eibrahimover 10 years ago
That explains what happened to healthcare.gov
monochromaticover 10 years ago
Yawn.
phkahlerover 10 years ago
Bummer: &quot;It was a very simple program—all it does is draw a square on a screen—but that’s the point, says Hadi Partovi&quot; I don&#x27;t want lawmakers that think imperative programming is all there is to it. That seems to be how they make laws - if you don&#x27;t like something make it illegal, if you like something offer incentives. They never try to create a simple system with a more emergent behavior.
keithwarrenover 10 years ago
I expect a publication like Wired to be able to distinguish between writing code and writing a &#x27;computer program&#x27;. If this is the bar then I wrote my first &#x27;program&#x27; when I was in 3rd grade in the 80s doing LOGO.<p>Don&#x27;t get me wrong, making programming a core competency is a novel goal and everyone should do it like everyone should do some chemistry in high school or do a physics project (I for one built an awesome bridge of balsa wood). It is an important skill that people should be exposed to at some point but the idea everyone should &#x27;learn&#x27; to do it is a misnomer.
评论 #8720942 未加载
评论 #8720501 未加载