Please create an account to participate in the Slashdot moderation system

 



Forgot your password?
typodupeerror
×
Education Programming

How To Teach a 12-Year-Old To Program? 799

thelordx writes "I've got a much younger brother who I'd like to teach how to program. When I was younger, you'd often start off with something like BASIC or Apple BASIC, maybe move on to Pascal, and eventually get to C and Java. Is something like Pascal still a dominant teaching language? I'd love to get low-level with him, and I firmly believe that C is the best language to eventually learn, but I'm not sure how to get him there. Can anyone recommend a language I can start to teach him that is simple enough to learn quickly, but powerful enough to do interesting things and lead him down a path towards C/C++?"
This discussion has been archived. No new comments can be posted.

How To Teach a 12-Year-Old To Program?

Comments Filter:
  • by Rod Beauvex ( 832040 ) on Sunday December 27, 2009 @04:06PM (#30564998)
    You don't want to raise a sissy, do you? DO YOU?!

    :D
  • Perl (Score:5, Funny)

    by metlin ( 258108 ) on Sunday December 27, 2009 @04:07PM (#30565002) Journal

    It has to be Perl, of course.

    That way, he'll either write Haikus and become a rock star programmer, or write Haikus and go raving mad and prove the rest of Hilbert's unsolved problems.

    Either way, you'll have Haikus, either as errors or from your brother. You can't go wrong with that!

  • by Arancaytar ( 966377 ) <arancaytar.ilyaran@gmail.com> on Sunday December 27, 2009 @04:09PM (#30565020) Homepage

    a web programming language, not something a 12 year old should be using

    From some of the Javascript code and web pages I've seen, it seems to be perfectly suited for 12-year-olds. :P

  • by theodp ( 442580 ) on Sunday December 27, 2009 @04:10PM (#30565028)

    Paper tape reader sold separately... :-)

  • Re:Python (Score:2, Funny)

    by brian1078 ( 230523 ) on Sunday December 27, 2009 @05:00PM (#30565494) Homepage

    hassle? Doesn't python come with the operating system?
    $ python --version
    Python 2.6.2

    Microsoft Windows [Version 6.1.7600]
    Copyright (c) 2009 Microsoft Corporation. All rights reserved.

    C:\Users\brian>python --version
    'python' is not recognized as an internal or external command, operable program or batch file.

    guess not

  • by 93 Escort Wagon ( 326346 ) on Sunday December 27, 2009 @05:15PM (#30565606)

    You didn't tell if he actually is interested in programming at all. Because if he isn't, he will never be.

    Exactly! He may, for example, be more interested in girls. And if he knows how to talk to a girl, he probably won't amount to much of a programmer anyway.

  • by Inda ( 580031 ) <slash.20.inda@spamgourmet.com> on Sunday December 27, 2009 @05:36PM (#30565754) Journal

    BASIC. BASIC. BASIC. That's how I started, aged 10.

    I typed pages and pages and pages of code I didn't understand. And when my "A" shaped man wouldn't climb up the italic "I" ladder, I got really pissed off. Radio controlled cars were much more fun.

    15 years after that, when my first child was born, I had a ton of staying-in time and I started to learn Java. But that was boring and didn't do anything I wanted it to do.

    HTML and Javascript was next. I got <breally</b> good at that.

    So get him a decent radio controlled car, tell him to wait 15 years, get married, have a child of his own, then write silly Greasemonkey scripts all night. There's so much fun to be had from auto-submitting forms.

    If you want any more advice...

  • by lastchance_000 ( 847415 ) on Sunday December 27, 2009 @05:55PM (#30565878)

    HTML and Javascript was next. I got <breally</b> good at that.

    +1 for unintentional irony.

  • Re:Python (Score:2, Funny)

    by tzot ( 834456 ) <antislsh@medbar.gr> on Sunday December 27, 2009 @06:30PM (#30566144) Homepage

    tl;dr: Python is a great language to learn by, but so featureful that your kid may never give it up.

    You make it sound as if not giving up Python is a negative thing. Perhaps I can understand it if I change context:

    - My little brother wants to enter the world of relationships. Whom do you suggest he should get involved first with?
    - Natalie Portman.
    - Well, Natalie is a trap; he can get hooked on her and never want to move on to someone else.

    Nope. Still does not compute.

  • by ElectricTurtle ( 1171201 ) on Monday December 28, 2009 @10:16AM (#30570648)
    When I was 12 decided I wanted to learn how to program. (Nobody came to me and asked, I just had my parents take me to a library and I picked up some books.) The only thing available to me was QBASIC (Version 1.0 on MS-DOS 5.0), and I taught myself by reverse engineering programming examples (I didn't really want to read the books cover to cover, and I didn't know any programmers). This was in the days before I had any real access to the internet, and so I essentially 'doodled' programs based off my rough, 12-year-old self-taught understanding for 2 years. When I did get regular internet access, I found more programs and reverse engineered them too. After a year of that, I decided to try to take all my self-taught bad habits and learn a 'real' language like C++.

    It kicked my ass.

    At that point being a programmer was what I 'wanted' to do. I had already spent years on my own, and really enjoyed programming, but I had developed so many bad habits, such an incompatibly warped way of thinking vs. programming for real applications, I couldn't hack it. I was, not for lack of trying, a miserable programmer who could never become a professional. I gave up, threw it all away, and have spent my professional life over the last decade in support, and I likely will never dev again.
  • by geminidomino ( 614729 ) * on Monday December 28, 2009 @10:48AM (#30570978) Journal

    Has nothing to do with the lack of a man page. It's because females' decision-making control structures are all non-deterministic.

So you think that money is the root of all evil. Have you ever asked what is the root of money? -- Ayn Rand

Working...