News for hackers. Stuff that matters.
Re:President Obama calls on every American to learn code by rolux on Monday December 09, 2013 @06:25PM (#6877825)
Just like the "prescribed foreign language course in middle school", a bit of programming practice may widen your horizon, and help demystify these seemingly opaque machines and networks.

It's about practice, not "knowledge" per se. Basic tasks, like: I have a folder full of files, how do I get the filenames into a text file or e-mail? Five-liners in high-level languages, the equivalent of asking for directions in a foreign tongue.

Of course, that idea comes from a time when one would own a universal computer, and own one's own data. You can argue that for many people, the filenames and text files I'm talking about are already a thing of the past, that it's all pinch and swipe, plus cloud storage.

Re:President Obama calls on every American to learn code by rhizome on Monday December 09, 2013 @08:08PM (#6878337)
The irony about your very valid benefits of having basic programming knowledge is that music programs, which have been proven to provide benefits in math and language and just general smartyhood, are the first to get their budgets cut in any given budget battle. That said, how many working people have ever had to face the problem of getting a list of filenames into an email?

http://www.pbs.org/parents/education/music-arts/the-benefits... (not my favorite source, but there are plenty of pointers to this data out there)

Re:President Obama calls on every American to learn code by aegiso on Monday December 09, 2013 @08:24PM (#6878384)
> That said, how many working people have ever had to face the problem of getting a list of filenames into an email?

Few, because when tasked with a problem that this could solve, most people would immediately throw up their hands and give up. This is the biggest obstacle of all.

"Which pictures are you missing?" "I don't know, I'm not going to flip through them all!"

Re:President Obama calls on every American to learn code by tmzt on Monday December 09, 2013 @09:07PM (#6878518)
Or take a series of screenshots (scrolling through the files as they go) which they then will paste into Word.
Re:President Obama calls on every American to learn code by hrrsn on Tuesday December 10, 2013 @06:12AM (#6880063)
And then they'll print it out and scan it to you.

(This happens more often than I'd like to admit)

Re:President Obama calls on every American to learn code by trhaynes on Monday December 09, 2013 @09:39PM (#6878659)
On Mac: select files, copy, switch to text area, paste. Actually, I'd be surprised if this didn't work on Windows, too...
Re:President Obama calls on every American to learn code by chii on Monday December 09, 2013 @10:58PM (#6878904)
For this particular example, the creators of the OS has thought of the function, and implemented it.

But what about a slightly different one? E.g.

I have two folders, each a bunch of files. Are there any files that are not in both folders?

Re:President Obama calls on every American to learn code by elheffe80 on Tuesday December 10, 2013 @02:03AM (#6879380)
diff -r dir1/ dir2/

edit: I did not know this- I just posted it because it is but one answer. For what it is worth, I agree with you- basic knowledge of programming is something everyone should know.

Re:President Obama calls on every American to learn code by rhizome on Tuesday December 10, 2013 @01:19PM (#6882491)
The thing is, diff and "get a list of filenames into an email/textfile" is not programming.
Re:President Obama calls on every American to learn code by eropple on Monday December 09, 2013 @08:49PM (#6878476)
> That said, how many working people have ever had to face the problem of getting a list of filenames into an email?

A lot of my coworkers.

They take a screenshot, thus offloading the hard part onto everyone who needs to get data out of their email.

It's about as awesome as it sounds.

Re:President Obama calls on every American to learn code by SiVal on Tuesday December 10, 2013 @02:33AM (#6879455)
I have to laugh at this. I worked in strategy consulting, where my coworkers were all MBAs from Harvard, Stanford or, in our office, Tokyo University. We had many cases where people had tasks of various sorts that they would handle with the equivalent of this screenshot-of-the-data approach. I, a fellow consultant, often groaned when I saw such things and wrote little utilities for them, figured out how to dynamically generate PDFs for their presentation data, or whatever.

At one point, the general mgr of our office, said that these things were so valuable to everyone, and I was so good at it and seemed to enjoy it so much, that he was wondering if it wouldn't make more sense for him to take me off of my own consulting cases and make IT projects my only case. Of course, IT people were thought of as lowly support staff for the elite consultants, so it would mean a pay cut and end my consulting career. This wasn't a warning; he was just thinking that this might better serve the needs of the firm.

That day I stopped being a valuable IT resource for my coworkers and reserved my dev skills for my giving myself a "sustainable competitive advantage" in my own work on my own cases.

Re:President Obama calls on every American to learn code by peterjancelis on Tuesday December 10, 2013 @03:54AM (#6879665)
You should package up your tools and sell it to them on a subscription basis per consultant head. Make sure the total price is at least your gross salary and bake in a minimum subscription period. Quit your job, build all the tools you ever wanted and sell it to all other consultancies and their offices.

The powerpoint extensions I used in consulting were created by ex-consultants so it's not unheard of to do this.

Re:President Obama calls on every American to learn code by rhizome on Monday December 09, 2013 @09:15PM (#6878551)
What industry do you and your co-workers work in?

As far as the hard part goes, I'd think an OCR script could handle this even if they're using Comic Sans for their file manager font.

Re:President Obama calls on every American to learn code by eropple on Monday December 09, 2013 @09:28PM (#6878612)
Medical software. :(

And yeah, that's an option that I've considered it in the past, but never been able to validate it because it'd take me less time to just transcribe it (or I can find a glob pattern from their screenshot, etc.).

Re:President Obama calls on every American to learn code by collyw on Tuesday December 10, 2013 @09:08AM (#6880754)
IT support apparently used this method in this in the last place I worked.
Re:President Obama calls on every American to learn code by Alex_MJ on Monday December 09, 2013 @07:56PM (#6878264)
A lot of it is also the mental structures you form, so you understand what a computer can and can't do easily instead of thinking it's all magic.

You may not have the specific chops to write a program to do it, but you know that doing something to (x) files is just a loop with a if thingy inside of it.

I think part of the "learn to code" movement is also hope that currently non-tech-literate people will learn to help themselves. Once you've googled "how do I do this in python" and found answers enough times, you (hopefully) gradually replace "All of this computer stuff is confusing! I need someone to help me with it. My cousin is good with computers. I'll call him." with "I got this shit. What up, google."

Re:President Obama calls on every American to learn code by meowface on Monday December 09, 2013 @07:56PM (#6878259)
I would say a general computer knowledge course would serve people better than trying to learn a programming language they'll probably never use, or want to use. Basic IT, networking, security, and simple scripting would probably serve the general public best.
Re:President Obama calls on every American to learn code by userbinator on Tuesday December 10, 2013 @09:32AM (#6880889)
And that's something that can be done in a single line at the terminal in Windows, OS X, or *nix. Learning how to use that effectively before learning how to code would already be a big step.