News for hackers. Stuff that matters.
Re:Obama Becomes First President to Write a Computer Program by karmacondon on Tuesday December 09, 2014 @12:35AM (#8721212)
This is actually a big deal. Obama's code wasn't very useful or complicated but that obviously wasn'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'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're talking moving heaven and earth here. If I suggest booking tickets on expedia instead of calling her travel agent she's like "What am I, some kind of nerd?"

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's a cultural barrier that's hard for most of us to see, a clear demarcation between most people'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.

Code literacy is important, not so that the average person can become a 10X engineer but so that they can understand what's happening in the world around them on another level. It'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'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't think that coding a full featured CRM from scratch will take you a couple of hours over the weekend. We're moving toward a more automated world and the value of understanding it is increasing exponentially.

Re:Obama Becomes First President to Write a Computer Program by sdrothrock on Tuesday December 09, 2014 @01:19AM (#8721334)
> Code literacy is important, not so that the average person can become a 10X engineer but so that they can understand what's happening in the world around them on another level. It's the same reason that people should learn physics or chemistry or biology

I disagree. None of that requires code and I don't think people need to know code any more than they need to know how a circuit board works or the inner workings of their internal combustion engine or microwave.

What people do need, however, are broadly-applicable critical thinking skills and a basic introduction to logic. Those skills can be applied to physics, chemistry, biology, ticket booking, car problems, oven problems, anything.

Re:Obama Becomes First President to Write a Computer Program by danieldk on Tuesday December 09, 2014 @04:55AM (#8721933)
and I don't think people need to know code any more than they need to know how a circuit board works

I work in computational linguistics, and it is often aggravating to see linguists doing hours of manual work on data that could be done using a five-liner.

E.g. my wife is a neurolinguist, and she was manually doing mechanical transformation of some EEG data, which was going to take her two days. I wrote a small Python script on the spot in a couple of minutes that did the same work.

That convinced her to learn some Ruby. Afterwards, she has saved a lot of time by writing small data transformation scripts for her research and that of some colleagues.

The problem is that a lot of people don't even know that it is relatively simple to pick up enough scripting skills to make your life easier. So, I think it definitely makes sense to add some coding to high school curricula, so that people at least know, when applicable, that basic scripting is not hard and where to start.

Re:Obama Becomes First President to Write a Computer Program by hanley on Tuesday December 09, 2014 @02:03PM (#8724866)
> I wrote a small Python script on the spot in a couple of minutes that did the same work... That convinced her to learn some Ruby.

Why didn't that convince her to learn Python? Especially since she could eventually use SciPy, NumPy, etc.

[deleted]
Re:Obama Becomes First President to Write a Computer Program by moron4hire on Tuesday December 09, 2014 @06:33AM (#8722202)
The entire point of a well-rounded education is that you never know when you're going to need it. Just because you can't imagine it, doesn't mean it's not necessary. Why not teach everyone a little programming? "It won't serve them" is not a good enough reason.
Re:Obama Becomes First President to Write a Computer Program by DieBuche on Tuesday December 09, 2014 @06:18AM (#8722161)
Your third sentence seems to be missing a not
Re:Obama Becomes First President to Write a Computer Program by blazespin on Tuesday December 09, 2014 @01:52AM (#8721409)
This is important for the American economy and for the inner city culture that Obama is always trying to reshape. Coders will rule the future global economy. Therefore code literacy IS important and as a role model to a culture that has been unjustly shackled, what he did is important. As for pandering, no, it was symbolic and the presidency is all about the power of symbolism.
Re:Obama Becomes First President to Write a Computer Program by sdrothrock on Tuesday December 09, 2014 @01:59AM (#8721423)
> This is important for the American economy and for the inner city culture that Obama is always trying to reshape.

I 100% agree with this. This was a great way to set an example.

> Coders will rule the future global economy.

I completely disagree with this and haven't seen any evidence. You could say the same about engineers or doctors or any other skilled profession that deals things that affect people in a similarly pervasive fashion. None of them "rule the future global economy."

> As for pandering, no, it was symbolic and the presidency is all about the power of symbolism.

I'm not sure where this came from since I never talked about pandering.

Re:Obama Becomes First President to Write a Computer Program by xiphias on Tuesday December 09, 2014 @04:44AM (#8721900)
Just look at Bitcoin, Ethereum, Counterparty and all the related startups around the cryptocurrency economy..decentralized EBays, currencies, stock exchanges, derivatives will rule the world economy in 6-20 years (not even talking here about the AI & medical revolution).
Re:Obama Becomes First President to Write a Computer Program by chriswarbo on Tuesday December 09, 2014 @06:04AM (#8722129)
Politicians, old money and the most sociopathic CEOs will rule the world economy, just like they did last century (these categories are not mutually exclusive). Technology doesn't matter at the top; it's just another mechanism for screwing over adversaries. Some of today's behemoths will fall, but more will come out of the shadows to replace them.
Re:Obama Becomes First President to Write a Computer Program by dagw on Wednesday December 10, 2014 @08:37AM (#8729054)
Coders might build the future global economy, but I see no evidence that they'll rule it.
Re:Obama Becomes First President to Write a Computer Program by Amezarak on Tuesday December 09, 2014 @09:48AM (#8722976)
> Coders will rule the future global economy.

When everyone knows how to code and coders rule the future global economy, coders will have the prestige and salary of a cashier or a waiter.

Re:Obama Becomes First President to Write a Computer Program by droopybuns on Tuesday December 09, 2014 @12:58AM (#8721283)
I disagree.

"moveForward(100);"

A publicity stunt should not be confused with a tectonic shift in technology literacy or usability.

Big deal- no. It's quaint, cute and frankly, a little pandering.

Re:Obama Becomes First President to Write a Computer Program by cafard on Tuesday December 09, 2014 @05:29AM (#8722037)
I don't quite see the pandering, but yes it is a stunt. Should we expect him to join up with PETA because he pardons a turkey once a year?
Re:Obama Becomes First President to Write a Computer Program by droopybuns on Tuesday December 09, 2014 @01:50PM (#8724772)
Pandering is the act of expressing one's views in accordance with the likes of a group to which one is attempting to appeal.

A "developer" who has been excited over "moveForward(100);" has been the subject of pandering.

Your PETA comment is not consistent with the point I'm making. Obama did some cargo cult "programming." I'm not sure that it's worth saying Obama is the first president to have ever "programmed" when all he did was follow a recipe. Obama did not develop any deep insight into software development and how the difficulties of the discipline justify the high salaries of your average developer. There's no real meat here.

Re:Obama Becomes First President to Write a Computer Program by infruset on Tuesday December 09, 2014 @04:27AM (#8721856)
> 53 year old african american man

How is his "race" (as you guys call it) relevant?

Re:Obama Becomes First President to Write a Computer Program by eloff on Tuesday December 09, 2014 @06:32AM (#8722198)
The same way his age is relevant. Fewer African Americans code, so he has to overcome not just his age, busy schedule, and probable fear of computers, but societal stereotypes as well. It makes it even more of an accomplishment. The same way it would if he had learned ballet instead (this time for gender, rather than racial stereotypes.)
Re:Obama Becomes First President to Write a Computer Program by dwild on Tuesday December 09, 2014 @09:47AM (#8722962)
Is it really a stereotype? I see plenty of African American and I was never surprised of it.
Re:Obama Becomes First President to Write a Computer Program by dawidw on Tuesday December 09, 2014 @05:39AM (#8722063)
> "race" (as you guys call it)

Do you know better term to describe "it"?

Re:Obama Becomes First President to Write a Computer Program by infruset on Tuesday December 09, 2014 @01:35PM (#8724657)
In my language, the equivalent of "race" is a word no one would ever use because it implies (in my language, I'm not saying that's what it sounds like in English, I'll leave that to native speakers) there are different "subraces" in the human race.

It seems to me that the use of this word facilitates the formation of ideas like "mixed-race couple" or "people of other races" which are not as easy to express in my language. It creates a (further) mental separation between groups of people by giving an official way of categorizing them which would be harder if there were no generic word for it. I'm not saying making the word disappear would make the problem of racism disappear, but I really think the frequent use of this word increases psychological walls between communities.

Finally, there is no scientific basis for saying Obama is of the "African American" race because he is as "Caucasian" as he is the former, which shows that what it really conveys is more than harmless classification for statistical purposes.

Re:Obama Becomes First President to Write a Computer Program by dawidw on Wednesday December 10, 2014 @08:34AM (#8729033)
You didn't answer my question.

Let me ask it another way.

Let's say that you're really fond of Asian women (my God! is it still legal in politically correct world?). How would you express such fact without referring to race?

Re:Obama Becomes First President to Write a Computer Program by infruset on Wednesday December 10, 2014 @09:23AM (#8729242)
I would say, women of an Asian type (in my language). However, in my mind this is a blurry distinction referring to appearance as opposed to an administrative category.

And yes, it is legal, I don't think I ever denied your freedom of expression.

Re:Obama Becomes First President to Write a Computer Program by platinum1 on Tuesday December 09, 2014 @04:35AM (#8721875)
Re:Obama Becomes First President to Write a Computer Program by infruset on Tuesday December 09, 2014 @04:38AM (#8721882)
Ok, but it is not relevant in this context. This guy is president of the United States, speaking of unlikely events..
Re:Obama Becomes First President to Write a Computer Program by ozh on Tuesday December 09, 2014 @04:36AM (#8721876)
Seriously, this. I couldn't read further after tripping up on that bit.
Re:Obama Becomes First President to Write a Computer Program by isitmeor on Tuesday December 09, 2014 @05:41AM (#8722065)
why ? are you an old afro american ? I thought they don't read.. hacker news. /s
Re:Obama Becomes First President to Write a Computer Program by ASneakyFox on Tuesday December 09, 2014 @05:13AM (#8721992)
From the article I don't think he actually did that. It said he wrote one line of javascript. I don't think he even set anything up he just sat down at a computer and copied a line from one of the exercises.
Re:Obama Becomes First President to Write a Computer Program by Shivetya on Tuesday December 09, 2014 @05:42AM (#8722072)
Coding is still too complex for the majority, frankly case sensitive period laden thirty character identifiers and the like still boggle my mind, who thought this was a good idea? The the prevalence of tricks and such, macros and what not, all which confuse many more than they help.

If we want programming to go mainstream we really need to have a near total visual environment. Yeah it won't be efficient but in today's world most won't notice. The people who write the tools may be encumbered with the text laden language but why should programming be solely confined to a text world?

Re:Obama Becomes First President to Write a Computer Program by alxndr on Tuesday December 09, 2014 @04:12PM (#8725791)
Have you looked at Scratch, from MIT?