Should Everybody Learn To Code?
theodp writes "In July, the Association for Computing Machinery announced it was partnering with Code.org, with ACM contributing funding and its Director of Public Policy to Code.org in a push to 'ensure that every K-12 student in the US has the opportunity to study computer science.' Interestingly, joining others questioning the conventional Presidential wisdom that everybody-must-get-code is the Communications of the ACM, which asks in its February issue, Should Everybody Learn to Code? By the way, Code.org is bringing its Hour of Code show to the UK in March. The new National Curriculum for England that is to be taught in all primary and secondary schools beginning in September includes a new emphasis on Computer Science curricula, said to have been sparked by a speech given by Google Chairman Eric Schmidt in 2011."
No.
ensure that every K-12 student in the US has the opportunity to study computer science
Yes.
(1) Reading comprehension
(2) Household economics
then Coding.
Everyone thinks that their profession is the most important in the world. But making everyone a programmer is not the most important task.
NB: The message above might reflect my opinion right now, but not necessarily tomorrow or next year.
Correct. We should start with learning to read/write before we move on to the advanced stuff.
No sig today...
Kids need to be exposed to a wide range of subjects (including programming) that they may later choose to pursue. They don't need to be taught to be experts in every subject, but they do need the basic understanding that will allow them to start learning on their own and to know whether it's something that would interest them or not. That basic understanding will help them make good choices about what classes they take, what they major in, etc.
I'm torn on this issue as someone who works in a sales org but has learned how to code/is in a continual process of getting better at it.
On the positive side of things, it's absolutely amazing how much time can be saved by extremely trivial code. For example, I had a client who needed to check something like 800 URL's for a given result on their page. They were chunking out ranges of the URLs to give to a team of people to do the task before we told them to put down the crack pipe and give us 10 minutes. A quick Python script looking for said element on each URL in the list dealt with that task nicely.
On the negative side-- the one thing learning code has taught me is that I'll never be that good at it. I had to bash my brains out on a table for many, many weeks, just to understand basic concepts like lists and arrays, and am only NOW really grasping the concepts of classes/why I should care. My code is sloppy, works well only really when run by me, and my ability to read other code/make modifications is limited to say the least. I stuck with learning code ONLY because I truly enjoyed it, and even then, after about 6-7 years of working at it, remain pretty mediocre.
In short, I'll never be a very good coder. I had to work INSANELY hard to get as good as I am, and I only did so because I genuinely love coding (even if I'll never be a savant with it). Trying to force people to go through that sounds like bad news bears, and I just can't see it working on any level. On the other hand, I get the appeal, because really everyone benefits. I get along great with our engineers because I can genuinely speak with them at a level that is more attuned to what they are thinking, and I can legitimately translate between the two orgs better than they could without me. It should be noted that we also have some rare engineers who can cross over to our world and love them for it.
So in short, I get why people want this to happen. Forcing it however is a recipe for disaster.
The question brought to mind a nice quote by Oscar Wilde: "A gentleman need not know Latin, but he should at least have forgotten some". Coding is not for everyone. Neither are history, poetry, chemistry, or Latin for that matter. But it's important enough to be included in a broad curriculum. Show your children everything, and they'll choose the stuff that is of interest to them.
If construction was anything like programming, an incorrectly fitted lock would bring down the entire building...
"The question brought to mind a nice quote by Oscar Wilde: "A gentleman need not know Latin, but he should at least have forgotten some"."
Absolutly right and, probably, in the same sense as Wilde tried to transmit.
Should everybody learn to code? Absolutly not.
Should everybody learn to think rationaly, not to be fooled by appearances, find the nut of a problem and then be able to decompose it into action items, set a path of action to solve them and finally check the intended result with the obtained one? I think so.
And it happens tom that learn to code can be a fantastic tool, probably the best, to achieve that goal.
I once saw someone renaming over three thousand files by hand in order to change a date format
They don't need to code. They need an IT department that doesn't have its head in its ass and is supplied with enough resources to be able to afford solving user problems like that.
Sadly, most companies run with a "lean" (read: understaffed) IT. Meaning they don't have time for anything but the essentials. But since most people in accounting, etc. don't make that much less than an IT worker, for a task like this which takes 15 minutes of time for the IT guy but could save a couple hours of work for the account (or whatever) dude, the interest of the company would clearly be that he picks up the phone, calls IT, explains his need and some IT guy does the shell magic for him quick.
Teaching everyone how to code, even basic skills, however, would cost a lot more than it's worth. Just hire two more IT guys. It's cheaper.
Assorted stuff I do sometimes: Lemuria.org
And it's a lot more fun than MS vs Linux, Java vs .NET, Nvidia vs AMD, or even vi vs emacs. Sorry "gcc or llvm", your grudge match will have to settle for a 3 AM slot on a low budget, obscure science light cable TV channel.
The big language demolition derby is still hot and furious, like the annual playoffs of old sports that still excite fans, if you can see past all the smoking wrecks like Modula and the entire team of modular programming cluttering the arena. If only the Perl 6 team could sort out their engine troubles and get their car into the arena, replace that sputtering Perl 5 vehicle and challenge that JavaScript/CSS/HTML/AJAX monstrousity that was cobbled together from a dozen different brands of automobiles, and that C++ bug that still works after being run over and rolled over and which just got a fresh set of wheels. OOP sponsors must be wondering which teams are still proud to bear their logos. And where's Haskell? Oh yes, loudly honking their horns from atop the safety of their functional programming pedestal while the LISP car circles round and round as if they expect a ramp to appear at any moment. Python? Dancing around the LAMP pole with PHP's go-kart. In one of the darker corners of the arena are the excruciatingly slow horse drawn wagons of the Fortran and Cobol teams, just trying to hold their ground. Follow the oil slick to find C. Java is struggling to move under the crushing weight of their massive armor, spare parts, and the huge gas tanks needed to feed their too thirsty engine. The kids would still love those Logo toy cars they used to hand out last century.
If coding is so universal, what language should everyone learn? We're nowhere near sorting that out. Shouldn't we be able to settle and standardize on the essential elements of a programming language? As it is, it's like arguments over mathematical notation. Multiplication works the same whether the symbol used is x or * or a dot or nothing at all because it's the default operation. But it's not so easy to tell what is trivial and what is important in programming languages.
Intellectual Property is a monopolistic, selfish, and defective concept. It is "tyranny over the mind of man"
And therein lies the... I don't want to say problem, but I cannot think of a better word.
When you see "learn to be a plumber", you think the simple stuff. Others may think more complex stuff, like soldering copper pipes, determining the correct angle of decline for waste pipes, repacking a shutoff valve, and other things that, not being a plumber myself, I do not have the knowledge to even consider as something a plumber would do.
Likewise, when people see "learn to code", some will think simple things like.. I don't know, how to grep a directory of text files. But others will think things like how to write an OS.
Or for the car analogy, it's the difference between knowing basic maintenance and being a full-blown mechanic.
Thus, we should say basic knowledge or advanced knowledge (basic maintenance vs full-blown mechanic). Everyone would probably benefit from basic knowledge on a number of things in today's world/civilization. Not everyone will benefit from advanced knowledge.
I don't care if I'm wrong. I only care about everyone obtaining something from the discussion.
I do have kids in school. The school places decently in national rankings, and I'm often alarmed by the quality of the kids' instruction. I think the GP is somewhat on the mark. For example, I've seen the kids taught to develop powerpoint presentations, where the emphasis was on the visual aspects of the presentation, rather than on the soundness or validity of their arguments. I've seen this even at the highschool level.
I don't have a good sense as to whether it's better or worse than when I went to school, because I'm not viewing both from the same perspective. But I do see a big gap between the education my kids are getting, and the education I wish they have.
Perhaps my expectations regarding kids' teachability are unrealistic (e.g., that they have longer attention spans and more interest than they really do). But I am sad that my employment situation hasn't allowed me the time to home-school them. I know they're capable of far more than is being asked of them.
Though for me Logic 101 was a lot better for my thinking than learning to code.
They don't need to code. They need an IT department that doesn't have its head in its ass and is supplied with enough resources to be able to afford solving user problems like that.
Yes... but the other piece of the puzzle is that the user has to be computer-savvy enough to know, or at least suspect, that there is a better way to accomplish a task. Users who have very narrow IT training may think there is only one way to do a task, and may not bother to ask for help because they don't even know that an alternative exists. Only people with slightly broader training will even be aware that there are things like scripts that can automate tedious processes.
And it happens tom that learn to code can be a fantastic tool, probably the best, to achieve that goal.
Some of the worst logic and most fragmented display of problem solving I have ever seen in my life was produced by people who knew how to code so I disagree, learning to code does nothing by itself.
C has pointers. They're pointy and dangerous. Someone might get hit by a bus error.
All right, but let's expand that a bit. Should every engineer know calculus?
I was required to take four semesters of calculus in college. During my 30 year career in engineering, I have never, not once, used anything beyond the first semester. When anything else comes up (which is rare), I just look it up in a table of integrals, use a tool like Mathematica, or solve it numerically. The hard part is never "doing the math" but rather figuring out how to construct the mathematical model of physical reality in the first place. Math class doesn't help much there. Knowing how to to integrate an equation doesn't do much good if it is the wrong equation.
On the other had, programming has been absolutely critical to everything I have done. I have probably spent 20,000 hours doing that. Yet in college, I was just taught how to invoke the Fortran compiler and given a photocopy of the basic syntax. Everything else was self-taught.
At least for me, there was a vast difference between what I was taught, and the skills that were actually useful.
All right, but let's expand that a bit. Should every engineer know calculus?
Yes, every Engineer should know Calculus. This is different from what's in the subject "Re:Should Everybody Learn Calculus?".
Now what someone could ask without such an extreme bias is "Should every student in high school learn what calculus is and what you can use it for?" to which the answer would be "yes".
Learning "Calculus" requires a lot of precursory work which people in general don't in High School. A person could even ask "Should everyone learn the basics of Algebra, Geometry, and Trig to which that answer would also be "yes".
I'm not saying you introduced the bias, the AC did.
-The wise argue that there are few absolutes, the fool argues that there are no probabilities.
I am lucky enough to homeschool. I do it primarily for the reason you would like to homeschool. In theory, public education should be able to offer a better education than homeschooling. Unfortunately, our public education system is so broken on every level, from parent to president. Most kids leave high school with what I would consider about a 7th grade education. Even colleges are spitting out graduates with only an 8th or 9th grade education.
I have over the years as an electrical engineer used many brute-force solutions to solve what could have been done more elegantly with a different tool: often Excel becomes the Swiss Army knife.
But, without being able to use a little shell scripting, Perl and PHP, there are problems that can't be easily solved. If I was any good at C or a more modern language I am sure other things could be options.
Unfortunately, the opposite is also often true-- Visual Basic created a generation of internal office applications that should have been dealt with differently.
I like to think the best thing computer programming education teaches people is when they should hire a programmer. I still remember a problem 18 years ago where tens of thousands of files had to be modified, and my boss' approach was just to bring in 20 temps after hours and do it manually for a couple months. Fortunately we were able to hire someone to automate it instead, but that approach wasn't available to him as he had no experience in that area.
"Should every student in high school learn what calculus is and what you can use it for?" to which the answer would be "yes".
Well, I would say the answer is "no". But either way, that is an answer to the wrong question. The question is not "Should schools teach X?" but rather "What should we remove from the curriculum to make room for X?" There are a lot of things that could be taught, and saying "everything is important" is the same as saying that nothing is important. For instance, at my son's school the kids in grades 4-6 can type their assignments, instead of writing them out with pen or pencil. Several parents asked the school to provide a touch typing class so the kids learn to type correctly. The school said the schedule was full, so if typing was going in, then something had to go out. After some back and forth discussion, the school decided to dump cursive writing, and replace it with classes on touch typing. That seems like a big improvement to me, since most of these kids will never again in their life write a letter or paper with a pen, but will spend much of their lives in front of a kayboard.
I think you're putting too large of a separation between the knowledge required to solve a calculus problem by hand, and the knowledge required to model a solution that requires calculus.
From a practical standpoint, if you are solving engineering problems whose solutions end up using integral calculus, I'm not sure how you could avoid learning calculus. How could you model a solution for a problem in terms of something which you never learned? If I was never exposed to calculus the first time, I would have no concept of what an integral table was or how to use Mathematica/Maple/Matlab/etc. to find a solution. I'm also not sure how you would make it through upper division engineering courses that made heavy use of integral calculus.
I agree that the lack of programming being taught to students in the sciences is a disservice to the students, but that's a separate issue entirely. Both programming and mathematics courses frequently become student filters, which makes them highly unpopular with students. In the case of engineering, it's easier to justify removing the hard programming courses from the curriculum given the vast amount of information that you need to learn. It's hard to remove the math without jeopardizing the content in the higher level engineering courses.
Yes... but the other piece of the puzzle is that the user has to be computer-savvy enough to know, or at least suspect, that there is a better way to accomplish a task.
At last, the real value in this rather silly education push. No, most people are not going to actually learn how to code, even if they take a class with the ostensible purpose of learning. But they will, at least, get a grasp on what's possible. It's amazing to me, after 20 years of so-called Information Age, exactly how few people have this basic grasp. It's just not there. The possibility that the machine can do repetitious things for them never crosses most people's minds. People think what they want done can't be automated because one part is unique each time, if they even give any consideration to the possibility of automation at all.
Primary school is about teaching people the basics, numeracy and literacy. Secondary school is as much about about teaching people what's possible as it is teaching any particular thing, and in this day and age, learning what a computer can do is at least as important at learning what chemistry can do.
Being able to do calculus helps you think critically and serves as a basis for study in many other important fields. There's a pattern of reasoning skills that you develop when you read a book, learn a method, apply it to solve a problem, verify your answer, and return to the problem to identify and correct errors.
Being able to solve the problem without having to look it up gives you an intuition for solving complex problems without having to resort to such means. If I tell you the derivative of a value is x^{-1}, you shouldn't need to look up that it varies logarithmically. And being able to solve the problem yourself is what gives you the faith in the solution being correct. You could always look up the wrong value from the table, or provide the wrong input to a compute engine (side rant: Mathematica syntax drives me bonkers). You should always have multiple ways of understanding and verifying your solutions because relying solely on existing tools to perform the work for you without understanding where they come from turns this process into a black box which you have to rely on purely out of faith; I would argue that this can be dangerous, especially for mission critical applications. For basic calculus, linear algebra and differential equations, which every college engineer is expected to understand, I don't think this is an unreasonable requirement.
Even while you yourself may have not been in a situation where you needed to understand these concepts, there are many fields in which being able to manipulate these equations is important: particle advection, comupter graphics and animation engines (manipulating ODEs and PDEs, linear algebra), or scientific and numerical computing and modeling (pretty much anything field of math). So I would say, if I were developing a comprehensive computer science program, I absolutely would have to include this in my curriculum, otherwise I would be shutting our students out of these fields. And if you're a mechanical, electrical, chemical, etc. engineer (or you're any other kind of engineer having to work with them), you need to understand these concepts to have faith in your results.
The purpose of your college program was not to cater its curriculum directly to you, but to give all the students enrolled a broad set of skills that they could apply in situations that might arise. And understand that your program can only expose you to the skills that you should learn, but it's up to you to find a practical use for them.
I have left slashdot and am now on Soylent News. FUCK YOU DICE.
I disagree wholeheartedly that learning to code is too specialized. We're in a transitional period right now where people specializing in computers are the ones writing code, but once society commits to the information economy fully, we'll start to see domain experts writing code for their domain rather than computer experts having to learn the domain (or collaborating with domain experts) to write the code.
It's analogous to basic literacy. There was a time when specialists in various professions would seek out someone literate to do their reading and writing for them. Now, it's an expected skill for everyone to have. We're in that period for computer literacy. Eventually, everyone will be expected to write enough code to solve the problems they specialize in. There will always be computer specialists...the people who build the tools that everyone uses or people who's jobs require a higher standard of code. But we have that exact same situation today...journalists, writers, lawyers and many other professions are expected to have a higher level of proficiency with reading and writing.
It's imperative that people understand this. We're entering a period where more and more people aren't able to offer any greater utility than machines, be they robots or simple software. First it was basic arithmetic where computers exceeded humans. Over time, we've added the bulk of our assembly line work. Even advanced tasks like playing chess are now best performed by computers. Google and others proving that human drivers will eventually be replaced. We'll soon realize that almost every job that doesn't involve some degree of creativity is on that list. Learning to code will be the primary defense against being replaced in your work by a machine.