6 ms·
Kids are the future; teach them how to code
- mycodebreaks 15y agoI have started feeling indifferent to this topic. How can you teach a seven year old to program? Kids of that age are hardly learning to add, subtract, multiply and divide numbers. How difficult would it be for a kid to grasp concept of function - in context of both math and programming. Teaching kids how to program is not as easy and logical as it sounds. My opinion is to let a kid grasp and understand the basics - which are math, science and logic at an abstract level. Such a rush to throw everything at a kid is overkill IMHO.
- georgieporgie 15y agoI agree with you (almost) entirely. My family got a Commodore VIC-20 when I was 8. I started "programming" immediately. Except that my "programs" were actually a series of PRINT statements, with an occasional input required for pagination. I was just writing stories, but doing it in BASIC. I distinctly recall being confused by the meaning of 'string' (the metaphor for stringing characters made no sense to my young brain). I played with computers non-stop, however. To the best of my recollection, my first real programs started around the age of 12 or 13. Changing the way we teach mathematics would probably do much, much more to improve our future than pushing programming on younger students.
- brudgers 15y agoThese discussions often remind me of Little League parents debating the best way to teach preteens how to throw a curveball. Teaching teens a bit of programming is another matter in some cases, but regardless of approach, most won't care enough about it to pursue it as an adult. Exposing young people to programming is as important as exposing them to Faulkner, but probably not much more important.
- victorhn 15y agoI think you are underestimating the capabilities of some children. Take for example Gennady Korotkevich, at the age of 6 he was starting to program, and at the age of 11 he was already competing in IOI and also winning a silver medal, his programming (specially algorithmic ability) skill was already beyond of what your average programmer may get in his lifetime. Maybe he is an extreme example, and he was born gifted, but i do think that there are many children which with proper guidance and encouragement can achieve levels of mastery in some topic like programming.
- blake8086 15y agoI feel like a seven year old could play http://armorgames.com/play/2205/light-bot http://armorgames.com/play/2205/light-bot and that's just programming.
- JoshTriplett 15y agoCheck out the very awesome Runestone Wisp for a similar idea: https://runestonewisp.appspot.com/ https://runestonewisp.appspot.com/ It presents various "arcane runestones" like "look ahead" and "look left", which send out "magic" over "threads of silk" to power other runes like "walk forward" and "turn left". The harder puzzles introduce AND and OR gates, and later on something similar to flip-flops to store "magic" and send it out later.
- JoshTriplett 15y ago> How can you teach a seven year old to program? Kids of that age are hardly learning to add, subtract, multiply and divide numbers. Leaving aside the various educational bugs that lead to that situation... For one thing, the earliest concepts of programming don't depend on math; that comes later. Think about something like LOGO here: the simplest bits just involve giving instructions to a computer like "go forward" and "turn left". More complex instructions like those used in fractal snowflakes represent a natural progression, and suggest the basics of functions and repetition. Similarly, think about LEGO robots: "go forward until you hit something, then back up and turn". You don't have to understand advanced math to implement that. At some point around that age, I came across a simplistic algorithm in a geology book for identifying rocks, which provided a series of questions that amounted to a flowchart: does it split into layers, what color of streak does it leave if you rub it on glass, etc. I turned that algorithm into a simplistic pile of C, using printf to print questions, getch or similar to prompt for answers, and if/else to figure out what to do next. I had no concept of modularity or code reuse, open-coded the prompting logic for every question, and nested the conditionals to an absurd depth, but it worked, and triumphantly printed the kind of rock you had. :)
- primo44 15y agoGrammar is the future. Learn about sentences.
- thinkdevcode 15y ago> Now just think how awesome you would be if you had learned how to code when you were seven years old. I started learning at 8 so another year wouldnt've done much. In regards to the program this is really cool. I've been trying to teach my younger brother how to code to help him in his math classes at school. If you can break a math problem down far enough to be able to build a calculator for it, you must understand it, which is in fact why I started to learn to code so young.
- paul9290 15y agoIndeed it's really sad that here in the U.S. our school system's do not offer coding classes as electives. Though we still put a strong emphasis in offering foreign languages like French and Russian? Having base coding knowledge and experience will go a longer way for our children then teaching them a foreign language like French, Russian and other languages!
- georgieporgie 15y agoIndeed it's really sad that here in the U.S. our school system's do not offer coding classes as electives. They don't? I took Logo and BASIC programming on the Apple IIe in 7th and 8th grade (1988, 1989). BASIC on the PC in 9th. Switched to Pascal and covered all the basic data structures and algorithms in 10th - 12th grade. That was a looong time ago. Surely computer education in schools has only improved since then in most places, right?
- paul9290 15y agoThat maybe the case in some select schools and those schools are now offering html,css,photoshop,javascript, python, ruby, iOS, java, php and others. Though those schools are not your average schools. In general the school system is still more focused on offering foreign language classes to students then teaching them coding languages. The latter skill being more valuable then the former!
- georgieporgie 15y agoBut the former being far more valuable for understanding one's own language, and preparing a young person for college-level reading and writing. That said, based on my own experiences, I think that a fast-track program could be developed to create functional, real-world (e.g. CRUD apps) developers straight out of high school. Basically, technical school for the modern world.
- nsxwolf 15y agoI had similar exposure in school, but from what I've seen with the young people in my family, it's gone the other way. There are no computer classes. They don't even teach typing anymore.
- skilesare 15y agoWhen I watch how much my 3 year old son uses our iPad it makes me sad that there still isn't an integrated way to program the device on the device. Someone with more time than me should solve this problem.
- technoweenie 15y agoCheck out Codea. In a few minutes I threw a rocketship sprite on there, mapped its position to CurrentTouch, and blew my son's mind.
- nazar 15y agoI always think of this. Not because I have kids, but because I teach children coding(web development). I have 2 groups, 13-14 years olds and 15-16 years olds. The younger group learns everything twice as faster. I plan to teach my kinds basic logic, maths, chess and after coding starting from age 4.
- molsongolden 15y agoDo you have any tips or resources for teaching children? I have a 12 year old in the family who I would like to get started. I can teach him html/css but anything beyond that we would be learning together.
- paul9290 15y agosure there is a movement of sites teaching these skills in fun, interactive and engaging ways like http://codecademy.com http://codecademy.com http://teamtreehouse.com http://teamtreehouse.com and our soon to be released start-up http://codepupil.com http://codepupil.com I am sure there are other sites too others here will suggest.
- nazar 15y agoI ususally use lynda.com resources. I also have problems with teaching something beyond html/css, but usually with enough repetitions and assignments students finally "get it". Brightest students of mine are the ones who really interested in programming. So, in order to make it interesting, I tell them about what sites like Google and Facebook are programmed like, how their best video games work, how they can make a "simple" version of their facebook like social site. They seem to get motivated by those talks of mine :)
- nbashaw 15y agoI've been volunteering once a week at a local school teaching 6th graders how to code, and it's really amazing how quickly many of them pick it up. Even small things like learning to mix blue and red to make purple using rgb(255,0,255) is utterly fascinating to them. I asked one of the kids how he would like it if they taught programming as a subject in school. His eyes just lit up and said "that would be awesome". It's also fun talking to kids about startups - the fact that you can use code to solve problems for people and start a business. They're usually more interested in building a fun game but still, you can see some flickers of awareness lighting up. A lot of these kids are selling candy to each other at school anyway, so they're pretty entrepreneurial by nature. I guess this is a long winded way of saying that teaching kids to code is one of the most rewarding and challenging things you can do, and I'd highly recommend it to anyone on the fence.
- windsurfer 15y agoI'm in university, and even here I wish there were classes that taught how to code. Everything is quite academic and high level, with little to no mention of how to learn a language, its libraries, how to code with a team, or any other day to day problems I face when making games.
- AznHisoka 15y agoCoding is great, but what about exposing them to some hard, meaningful problems while we're at it as well? Otherwise, we're just gonna get 10 times more photo sharing apps in the future.
- antirez 15y agoMissing tassel in this puzzle IMHO: Something like Codea (iPad app, incredibly cool to learn programming to children) but as a web site, with a similar interface and "visual" objects, language Javascript. After you create an app you should be also able to "name" it, so that <name>.this-site-name.com means instant-deploy of your app. This is the thing more similar to BASIC of C64 that I can think, in terms of easy access, and ability to build something that you can actually distribute/show.
- _feda_ 15y agoI think it makes sense to mention the potential influence of raspberry pi on education here, it's potential that is to provide far greater accessibility to a superior coding/learning platform in education. The next few generations might just be raised as linux users.
- _feda_ 15y agoI hope that if I ever have kids, I'll be able to educate them as well as I can in (in no particular order): 1. Basic programming & general computer skills 2. A foreign language 3. The ability to learn by themselves I have no desire to hothouse them of course, nor is it anything to do with improving their career prospects etc. I just look forward to sharing the fun of learning with them
- tokenadult 15y agoI just look forward to sharing the fun of learning with them There is no end of fun in learning with children, as I can attest as the homeschooling father of four children, one now grown up. http://learninfreedom.org/ http://learninfreedom.org/ (I will have to remind my oldest son, a computer science student in university and hacker, that I could use his help updating that website.)
- _feda_ 15y agoI envy you sir :) and thanks for the resource
- _feda_ 15y agoAny opinions/experience on the best language to introduce kids to programming with? My instinct says python simply because I personally found it the easiest to get to grips with, but I guess practically anything will do.
- georgieporgie 15y agoI'm still convinced that Logo is very hard to beat for a truly first-ever language. Drawing is fun, and Logo is all about drawing. It develops basic logic in a progressive manner. But yeah, Python would be the best next step.
- tomjen3 15y agoLua. Relatively simple language, but super fast (lua jit rivals C). Dead simple C api, so you can hook up whatever library you want to, if you need it (say GTK or even openGl, though I assume that somebody has already done that). Either that or some form of Scheme. Not that it is simple to most programmers but it has very few basic pieces of syntax learn and when you start programming all of it is foreign anyway.
- robbrown451 15y agoI'm sure lots will disagree with me, but I say Javascript. They already have everything they need on their computer now, and can start right away at JSFiddle and with various online tutorials that run the code on their own machines. They can do useful stuff right away and share it with people immediately. (for instance, make a little game or graphic gizmo and put it on a web site) It not only runs on the browser, but runs on the server (node), and in various other environments (MongoDB, Windows 8, etc). So again, their skills can be put to use quickly, and will be useful going forward in the maximum number of places. There are immense numbers of people out there using it, writing about it, offering help on sites like stackoverflow, and so on. For kids with short attention spans, the simplicity of javascript is a big plus. Being able to create objects on the fly easily, and not really worry about types and object orientation and all that makes it a lot easier to get up to speed quickly. (yes, there is potential for them to learn bad habits, but I think a far bigger risk is that they get bored and give up)
- 15y ago
- test23452 15y agoThis is getting really boring. I see "teach how to code" articles all the time. I understand that Paul Graham thought it is important, but come on, not every day!
- brudgers 15y ago>"Now just think how awesome you would be if you had learned how to code when you were seven years old." Probably as awesome as I am as a baseball player, which I actually learned at age seven...and quit for spring soccer at age 9 because games and practices were so incredibly dull. However, I suspect at age 9 I would have traded the prospect of a Saturday afternoon programming in a New York minute for sitting in the dugout during a baseball game.
- redschell 15y agoThe concept here is encouraging, but at the same time a bit disheartening when I consider how many of my peers have recently graduated or will soon graduate with expensive, decreasingly valuable degrees in subjects they love, but will have difficulty securing employment with. For instance, I have a good friend studying history right now who has recently taken up programming in an effort to spruce up his resume. I can't help but think "Why so late? Why didn't anyone nudge you in that direction when you were younger?" I know my parents wanted me to truly understand new technologies, not just interact with them, so coding was an integral part of my life from an early age, but I fear many more parents probably saw the rate at which software was advancing and the promise of the internet and thought "Well, programming probably isn't that important anymore" (assuming, of course, that they had any opinion on programming at all). He's a bright guy, so he'll be fine, but the fact that so many people my age will likely need to spend much longer acquiring and honing these skills (if they even bother to try) than children of the iGeneration is a bit depressing in the "Born just a bit too soon" sense.
- batista 15y agoNow just think how awesome you would be if you had learned how to code when you were seven years old. Not that much, if I happened to want to work in any other totally unrelated profession, like a language teacher or a chef or a doctor. Now, imagine how awesome I would be at MY chosen non-coding profession, if I had learned it since seven years old. Which actually doesn't make sense, because I hadn't made my choice of profession yet. So let seven years olds just be, and if some of them are programming prodigies, OK, but not everyone has to learn to code. It's just programmers thinking they are "the shit". Here's another thought: kids are the future, teach them how to behave and be considerate.
- JoshTriplett 15y agoLearning to program (at least, learning the right way) teaches important skills independent from the actual ability to program. Most importantly, it teaches the ability to abstract and see patterns. Take a look at https://rwxweb.wordpress.com/2012/01/31/teaching-algorithmic-thinking/ https://rwxweb.wordpress.com/2012/01/31/teaching-algorithmic... for an example.
- SkyMarshal 15y agoNot just the ability to abstract, but the ability to think at a very granular level of detail and multiple levels of abstraction simultaneously. Not many fields do that to the extent programming does. And the instant feedback loop reduces the need for expert outside guidance and instruction. There's also the idea of CS + X, for all X[1] (or for most X, as batista points out). 1. http://www.xconomy.com/new-york/2012/01/18/cs-x-for-all-x/ http://www.xconomy.com/new-york/2012/01/18/cs-x-for-all-x/
- tokenadult 15y agoNot just the ability to abstract, but the ability to think at a very granular level of detail and multiple levels of abstraction simultaneously. Not many fields do that to the extent programming does. Thank you for suggesting a generalized benefit of learning programming. My oldest son (grown up now) is a programmer, and maybe there is something to what you say. I'm glad he had early opportunities to learn Logo, C, and Scheme as part of thoughtful computer science curricula before he finished his high school education. Anyway, I'll encourage all of my children to go beyond the programming I reached decades ago with a time-sharing terminal running BASIC back in the 1970s. But if I think about this issue of the educational benefits of learning this or that subject on multiple levels of abstraction, I wonder if the unique benefits of learning programming are really all that unique, and really all that generalizable to domains other than programming. I raise this question as someone whose last formal higher education was in law, a domain in which I practiced for a time, before turning my attention to specific issues of policy that are not all issues that raise legal questions. As I look at public policy discussions here on Hacker News, and especially at threads in which legal issues are discussed, I don't often have the pleasant experience of seeing multiple-level abstract thinking going on in those domains. Usually the comments here on HN about public policy or law look as elementary as my comments about programming must look to any experienced programmer. Many of the best comments about law on Hacker News, perhaps to no one's surprise, come from lawyers. Maybe the ability to think really abstractly (and correctly) on multiple levels is much more domain-specific than people who have been trained and practiced in one domain but not another usually acknowledge. Maybe part of domain-specific expertise is an "ability to think at a very granular level of detail and multiple levels of abstraction simultaneously," without much transfer of that ability to other domains. Knowing I am among learned people here who like to think, I'd be happy to hear the comments of any onlooker to this idea that learning is often stubbornly domain-specific.
- billpatrianakos 15y agoI'm sick of hearing that we need to teach kids to code. No, we don't. This idea comes from other coders who seem to be living in a bubble. It's important that we teach kids to be computer literate but coding is not an essential skill. Do we need to teach all children to be doctors? I mean, we all have a body that needs to be taken care of, right? Do we need to teach all children how to assemble an automobile engine? No, driving the car and being able to check the oil or change a flat will suffice. Programming just isn't for everyone and no matter how often or loudly you scream that it is that doesn't make it so. Coding is hard and people think its boring. They won't persue it any further than they would a sport their parent puts them in that they dont like. There are things that all children should learn like reading, writing, and math but you wouldn't say all kids need to be trained in writing like a writer would or that mandatory math needs to incorporate the kind of stuff the guy from A Beautiful Mind was doing, right? In the same way that we all need to know how to read, write, and do basic arithmetic, that's how we need to teach kids to code. Sketch the broad strokes of how a computer works. Give definitions of hardware and software and teach them how they interact with each other. Introduce them to the concept of binary data and how all code is just one's and zeros. After that it should just be up to the child to decide if they are fascinated enough to learn to code. Even if there is a shortage of software engineers it doesn't matter. Teaching kids to code young won't help them pursue it any further if they aren't interested. No one taught programming in schools years ago but I love it. I became fascinated with the idea that I could make the computer do anything I wanted and there are a lot more like me that did just fine without being taught it in schools. That's how any profession is, really. Pilots don't become pilots because they took an aeronautical engineering class, they do it because when they're little kids they see a plane in the sky and say "wow, I want to fly when I grow up". Same with programming. Somewhere, a kid who never has or will take a mandatory programming course before college is sitting at the computer, browsing Facebook and thinking "wow, I want to make my own websites/games/other software when I grow up".
- yabai 15y agoProgramming should be part of mandatory curriculum for students. I often sit at meetings an hear non-tech colleagues say things like "how does the internet work?" or "what are we going to do if the internet fills up". I would hope that theae ideas are taught...knowing many teachers who have very limited tech experience makes me worry...