share
Stack OverflowWhich programming language is manageable by an 11 year old kid?
[+66] [66] tangens
[2009-10-25 19:16:54]
[ programming-languages ]
[ http://stackoverflow.com/questions/1621774/which-programming-language-is-manageable-by-an-11-year-old-kid ] [DELETED]

Possible Duplicates:
What is the easiest language to start with? [1]
What are some recommended programming resources for pre-teens? [2]

My son is 11 years old and he would like to learn a programming language. Of course his primary goal is to develop some (simple) games.

Do you know of a programming language that is suitable for this situation?

Summary of languages recommended in the answers

I'll attempt to asnwer but there are so many similar questions please don't be surprized if this gets closed as a duplicate - DVK
(8) I started coding in QBASIC and DOS batch files when I was 6. I guess it should be very easy to pick up a Basic variant (VB.NET) if your native language is English. - Mehrdad Afshari
My uncle taught me IBM PC assembler when I was 11. That was a mistake. Even though I could make a program, I didn't grasp enough of what was going on to retain it. I certainly was left with some valuable takeaways, though. - Yishai
(12) Avoid any form of BASIC. Find two or three good possibilities, go to their sites and compare them. Remember that every kid is different, there is no ideal language for 11 yo kids, just the best choice for your particular child and you will have to make that decision. - Michael Dillon
(4) Shouldn't this be a question for moms4mom.com ;) - Amadiere
Whoever voted to close for "exact duplicate" ought to post a link to the dupe. There are a few links under "Related" on the right that may be useful. - DisgruntledGoat
(3) Here's one of many duplicates: stackoverflow.com/questions/215585/… - gnovice
I started with Javascript about that age.. then learned java. Getting my head around OOP was really hard at first. Python would be good too maybe. - Mk12
the top answer here was not in any of the pseudo-dups. leaving this open has value. - Dustin Getz
@Dustin: You could have just added your answer to one of the dupes. - gnovice
(2) The short answer is 'Any of them, if he's willing to learn.' - Steven A. Lowe
(1) +1 for taking the time to summarize and reference all of the answers. - Tim Post
[+58] [2009-10-25 19:41:09] Dustin Getz

Snake Wrangling for Kids [1]

Learning to Program with Python.
Copyright © 2007. All Rights Reserved.

“Snake Wrangling for Kids” is a printable electronic book, for children 8 years and older, who would like to learn computer programming. It covers the very basics of programming, and uses the Python 3 programming language to teach the concepts.

[1] http://www.briggs.net.nz/log/writing/snake-wrangling-for-kids/

(4) +1 for the title alone! - Dan
(1) And for those who remember about the Logo language used to teach programming to children, there is the turtle module in Python too (docs.python.org/library/turtle.html). - RedGlyph
(1) +1 for Python ! - Mk12
1
[+29] [2009-10-25 20:10:07] deeb

Scratch [1]. Don't underestimate it just because it's drag-and-drop. MIT uses it for their intro computer science class.

[1] http://scratch.mit.edu/

(2) MIT's intro CS class has fallen from its days of Scheme to Python, but I don't think they've started using Scratch. :-) Still, +1, for Scratch is great at getting kids into programming: many of the kids learn and understand recursion just because it lets them draw cooler patterns, etc. - ShreevatsaR
this is another MIT. :-). - LB .
(1) +1 on the vote for scratch. I got to see it in action in the hands of this same age range (11-12 year olds) this past summer, and it was reasonably effective at explaining basic programming concepts. - chsh
(1) I installed Scratch and it's really great. My son was able to write some small programs immediately. Now he's downloading some examples from the website and modifying them is great fun. Scratch is even adopted the local language (german). Thanks for the recommendation! - tangens
(1) a good article concerning scratch cacm.acm.org/magazines/2009/11/… with good references - LB .
2
[+26] [2009-10-25 19:24:53] adrianbanks

Have a look at Small Basic [1] from Microsoft's DevLabs. It is designed as a simple (.Net based) language and comes with its own editor with intellisense. It also has an option to "graduate" to Visual Basic.

A description from the DevLabs site:

  • Small Basic derives its inspiration from the original BASIC programming language, and is based on the Microsoft .NET platform. It is really small with just 15 keywords and uses minimal concepts to keep the barrier to entry as low as possible.
  • The Small Basic development environment is simple, yet provides powerful modern environment features like Intellisense™ and instant context sensitive help.
  • Small Basic allows third-party libraries to be plugged in with ease, making it possible for the community to extend the experience in fun and interesting ways.
[1] http://msdn.microsoft.com/en-us/devlabs/cc950524.aspx

+1 for the turtle... Turtle.Show() and Turtle.Move() make for happy kids! - AJ.
And to think; all I had is GW-BASIC! - PeterAllenWebb
(11) -1. BASIC deserves to die! - Jason S
(4) Do you really want to mentally mutilate the poor kid beyond hope of regeneration? - Alexander Torstling
(10) -1 for BASIC and platform lock-in! Sorry but I think the other options (python, scratch, etc..) are better. - chrism1
(8) +1 because of all the basic bashing going on. there is nothing wrong with small basic in educational context. and there is no "lock in" for .net either (see mono). - ssg
(1) +1, I started on BASIC in 3rd grade. Now I'm employed as a software engineer. Obviously it is not a path to ruin. - Matt Baker
(5) +2 Its funny to see how many people jump on the VB isnt cool bandwagon. Once you've learned the principles, jumping from one language to another is simple. I started off on vb.net and after a week of using c#, was able to use it just as effectively. And I'm not that smart. - NickAtuShip
3
[+18] [2009-10-25 19:22:41] Harry Vangberg

I started with Visual Basic 6 when I was 11. Then moved on to some pure BASIC because that was all my own computer had. Although I'm no fan of Visual Basic today, the fact that I could drop a button in a window, click on that button, write some code for just that button etc. made it a bit easier to understand what was going on.


(1) Same here. Started Visual Basic 6.0 when I was 11. Now I use .NET. - Austin
4
[+16] [2009-10-25 19:19:36] DVK
  • LOGO
  • NXT-G for Lego Mindstorms
  • Heck, there's always BASIC (I started with that)

A good list is here on Wikipedia [1].

Also see many related SO questions, especially this one [2]

[1] http://en.wikipedia.org/wiki/Educational%5Fprogramming%5Flanguage
[2] http://stackoverflow.com/questions/41988/how-to-get-kids-into-programming

(5) How do I move the turtle in LOGO? - Nosredna
I came to this question hoping someone had mentioned LOGO. - Ether
5
[+14] [2009-10-25 20:22:36] therefromhere

How about Processing [1]?

It's not really aimed at games, but more at creating interactive visual widgets.

It's basically simplified Java, and right off the bat you have visual feedback - here's a complete sample program that will draw a multicoloured line with your mouse:

int oldX;
int oldY;

void draw()
{
  stroke(random(255), random(255), random(255));
  line(oldX, oldY, mouseX, mouseY);
  oldX = mouseX;
  oldY = mouseY;
}

The Processing IDE gives you a very easy way of managing "sketches" (programs) and a means of publishing your programs as web pages with applets. Also the built-in examples show how you can get some pretty cool effects with just a page or so of code.

[1] http://processing.org/

I've been quite impressed with Processing and how it is so simple to create immediate visual feedback. Do you know if there is any interactive debugging for it? It would be great to be able to step through the program and view the value of variables. - Ashley Henderson
(1) Since it's essentially a layer on top of Java, you can debug it within a Java IDE like Netbeans or Eclipse. - therefromhere
BTW, here's how to run Processing from Netbeans: processing.org/discourse/yabb2/YaBB.pl?num=1191468953 - therefromhere
(1) NodeBox is a (OS X only) alternative using Python instead of Java. - Matt Baker
6
[+12] [2009-10-25 20:39:31] LB .

I like Alice [1] a lot. You can do pretty cool things using it.

The Blender Game Engine [2] is really interesting too, it's a bit more difficult but you can create amazing games.

[1] http://www.alice.org/
[2] http://wiki.blender.org/index.php/Doc%3ATutorials/Game%5FEngine/BSoD

Blender involves 3d modelling too. - Mk12
7
[+10] [2009-10-25 20:45:44] Ether

You have the opportunity to start him out right. Start him with Lisp.


Is there good Turtle Graphics and Sound libraries for a Lisp dialect? - Thorbjørn Ravn Andersen
(1) Are you trying to make a guinea pig out of the poor kid? - Alex Baranosky
What's wrong with experimenting with kids? :-) - liori
Might as well feed him with plenty of candy to give him diabetes, and then keep him supplied with insulin. Just in case something goes wrong and the kid goes frenzy, you know. But still, I might be a little bit inclined to agree. Lisp is a language with very different characteristics compared to many other widely used languages, so giving him a taste of its special structure may work very well for his development of thought systematic. - Dunya Degirmenci
(2) The Scheme dialect is very well suited for introductory programming. Common Lisp might be a bit much. - David Thornley
-1 for obsessively pushing technology. I've used LISP, Prolog and Scheme in professional situations; I appreciate them. But learning them first is no more useful than learning Maths "right" by doing set theory instead of arithmetic. - boisvert
8
[+10] [2009-10-25 22:27:57] thethinman

I would try python. It's easy to follow and intuitive, without a lot of magic or mystery. Also, it's one of the top languages in the industry - might as well learn a job-maker :)


9
[+9] [2009-10-25 20:06:18] Jader Dias

Whatever you choose, kids need immediate feedback. Myself, when I was 11, was amused by the simplicity of Qbasic's PLAY command (plays musical notes using the PC speaker):

PLAY "CEFG."

Later I learned the drawing commands, and then I built my first games. So keep in mind:

  1. Audio
  2. Image
  3. Games

If those 3 things are easy to do, it will keep him interested.


10
[+7] [2009-10-25 19:43:11] Michael Dillon

My son started learning Hypercard when he was 7 years old, using a 2-inch think book called the Hypercard bible. At age 11, your son should be capable of handling a reasonably powerful programming environment as long as it doesn't require too much domain knowledge. Either C or C++ would be too advanced for that age.

Java is a possibility if you use a teaching environment such as BlueJ [1] to avoid the hard bits until later. However, if he is thinking of graphical games, then this framework might not provide enough support for him.

Another, even more scaleable environment is Squeak Smalltalk [2], but the risk with that is that as he gets more advanced, it will be beyond your ability to help him unless you already have a grasp of Smalltalk, are or good at learning new languages.

A nice balanced choice is Python with the PyGame library. You have an object-oriented language so that he will learn concepts that will be useful later in other languages, and the PyGame library supports writing some fairly sophisticated games. In addition, Python can be used to produce binaries with everying in one .EXE file to share with friends. Have a look at the PyGame site [3] where you can find many sample games that have been created for the many PyGame programming contests. With 370 arcade games on offer, he should be able to find something interesting and perhaps begin by modifying it rather than starting from scratch.

[1] http://www.bluej.org
[2] http://www.squeak.org
[3] http://www.pygame.org/

11
[+6] [2009-10-25 22:35:59] Michael Borgwardt

Inform [1] is a domain-specific language for writing text adventure games. Inform source code looks almost like a script for a play.

If your son likes reading, I can't think of a better first programming language; if he's more visually inclined it might not be such a good choice.

[1] http://inform7.com/

hmm. I have real mixed feelings about Inform. On the one hand, it's aimed at adventure games which is really cool. On the other hand, the syntax is so warped and constrained that it seems like as a first programming language it would be confusing, frustrating (where's the debugger?????), or teach some bad habits. - Jason S
i didn't know inform, that's pretty cool but this not really intended to learn how to program. (but that's pretty cool so +1) - LB .
@Jason: There's other, similar languages. If you're interested, you might look at TADS (at www.tads.org), which is intended for adventure games, but is a whole lot more like conventional programming. - David Thornley
Inform 7 is about the only natural language programming environment I've seen that doesn't suck on face. I tried it and had trouble getting past the precise way the program wanted sentences formatted -- e.g. "The living room is west of the bathroom" is valid, but "To the west of the bathroom is the living room" is not. The error messages were a little obtuse for me too. Truth be told, different strokes for different folks and all, I'll go with "it's good but it isn't for me." - Jim Dagg
12
[+5] [2009-10-25 19:35:45] Dustin Getz

I coulda done python and pygame at age 11.

I was a QBasic kid myself, the simpler python constructs are probably even easier, and it scales upward to harder concepts.


13
[+5] [2009-10-25 20:11:35] ONi

As a programmer, if you want to develop the skills on your boy then I would recommend you teach him the Scheme language. its most popular implementation, Dr. Scheme [1] has very detailed documentation for learning and game programming using the functional paradigm. If he learn Scheme now, C and Java will be a breeze.

[1] http://www.plt-scheme.org/

heck no! You trying to kill the kid?!?!?! ;) - Alex Baranosky
Just FYI, Dr. Scheme is now Racket - Alexander
14
[+4] [2009-10-25 19:23:13] Jason R. Coombs

Lego NXT-G, the graphical Labview-based programmer included with Lego Mindstorms is a great product. You can use it to develop trivial games on the NXT device, but it wouldn't be suitable for learning general-purpose programming (or PC-based game programming).

I'd say NXT-G is a good starting off point for learning concepts in an engaging environment before going to something more text based.


15
[+4] [2011-01-16 07:42:53] vsedach

Now that Conrad Barski's Land of Lisp (see my review on Slashdot: http://books.slashdot.org/story/10/11/03/1238213/Land-of-Lisp) has come out, I definitely think Common Lisp is the best language for kids (or anyone else) to start learning programming.

Between Land of Lisp, David Touretzky's Common Lisp: A Gentle Introduction to Symbolic Computation (http://www-2.cs.cmu.edu/~dst/LispBook/ really great book for people new to programming, available for free) and The Little LISPer (3rd edition, editions four and up use Scheme) you have three really great resources to get started.

Lisp's syntax is a great advantage because it is so simple to learn and has so few special cases. The interactive, iterative development style combined with full late-binding and reflection means you can build programs in parts and add to them as you go, and you always have the ability to look at any part of your program and its state to find out what it's doing/what's wrong. The HyperSpec and Common Lisp The Language are two of the best programming language reference manuals ever written.

The best parts about Common Lisp is that it's a language that's hard to outgrow and it makes difficult things easy. One of the chapters in Land of Lisp explains HTTP and HTML and has you build a basic web server. That chapter is only 15 pages! There's tons of ideas in the language, and because you're not restricted to a particular programming paradigm, you're always discovering better ways of doing things and developing a personal style.

There's a pretty active Lisp game development community at http://lispgames.org/


+1, it's enjoyable for adults and I think for children, too. I for one enjoy it. - 0xC0000022L
16
[+3] [2009-10-25 19:21:59] mihi

Depends on the kid. :)

But eToys [1] might be a good start, it at least makes it simle to develop simple gaines. Although eToys is more or less a point&click language.

It might also depend on the kid's knowledge of English (if it isn't its native tongue).

[1] http://en.wikipedia.org/wiki/Etoys%5F%28programming%5Flanguage%29

+1 for depends on the kid. My daughter is dyslexic, and the vast majority of the comments above about "no need to be that clever" fall apart when she can't spell "window" or "write", or notice a quote mark/bracket/literal marker. - boisvert
17
[+3] [2009-10-25 19:25:33] Brian Rasmussen

I have heard some good things about Phrogram [1]. It is a simple language, designed for kids and it targets the .NET platform.

[1] http://en.wikipedia.org/wiki/Phrogram

18
[+3] [2009-10-25 23:18:11] rama-jka toti

Give him C#, seriously, and don't be suprised when he knocks up code in few years of better quality than majority of dump out there.. Many people around me were at that age already picking at C and various asm dialects, they all have kids and love looking at them ripping it apart so quickly although gaps to fundamentals become very obvious (just like it is with pure orange Java grads)..

C# makes it too easy, a kid just eats it especially with VS2008 and its designers and popular refactoring tools. Try it out and you'll be shocked how quickly he'll rip through it.. what else to expect..

Don't let him/her program games straight away but do encourage him to analyse other people's code (as well as simple game code, XNA and friends say, many libs out there).. to go through what he thinks are interesting portions.. Demos will attract him too and is the best way imho. API or framework is not that relevant at all and by the time he finishes high school it will be a new one anyway, whatever v10 CLR and v15 Java and v8 Google shove down the throat of goats..

Btw, there are 15 year olds working through git and managing pretty complex builds of C and C++ tools and sure that's an extreme example.. but don't underestimate their capacity and ability to take on complexity, it's incredible..


I agree about not trying to make games right away, no way is an eleven year old going to code even simple games and fully understand it. - Mk12
(4) I completely agree about C#. I actually am 12 years old right now (no joke) and I'm doing C#, but I started programming at 7, so who knows. C# is quite easy to pick up as long as you can understand some of the most important concepts, but that's why we have Stack Overflow. I was able to do so, and I've done some work for a non-profit, so I think, after a little bit of learning, a kid can really get going with C#. - Maxim Zaslavsky
Teaching technologies that are only centered around a single company is like putting all your eggs in one basket. A child should start out learning something more neutral, then being able to select one of several paths later on. I'm not only thinking about who's behind the technology, I also think C# and "the Microsoft way of thinking" is a poor fit for Android, iOS and web applications, which are increasingly relevant, despite the continued attempts from Microsoft to catch up (and despite Unity). - Alexander
19
[+3] [2009-10-26 00:18:14] user181548

I would have thought JavaScript would be a good language for him to start out with. The language is compact and safe (can't crash the operating system), and runs in a web browser. What's more, JavaScript is a nice language to learn.


20
[+3] [2009-10-26 00:18:16] Graphics Noob

Jeff seems to think you should get kids started with "C++ GUI Programming" [1]

[1] http://www.codinghorror.com/blog/archives/001242.html

Yeah, C++ is good. I learned it when I was 11 going on 12, and it helped contribute a lot to my understanding of computer architecture, stuff I probably wouldn't have learned in great detail if I started with C# or Java first, since they hide those details from you. - blwy10
Yes, but that is Rock Hard Awesome. He's an exception to the rules. - Jim Dagg
c++ for my boy. He gets more dangerous all the time. - EvilTeach
21
[+2] [2009-10-25 19:26:55] Bob Aman

If you're looking for a real-world programming language that can be understood by an 11-year old, Ruby is a good option. Toy languages are cool, but limited in what they can accomplish. At 9, I was copying BASIC programs out of magazines. By 10, I was writing in C, because I'd gone way past the limits of what BASIC could accomplish. If I had had Ruby back then, I would have been very, very happy.

I highly recommend Chris Pine's Learn to Program [1]. He also has an online tutorial [2] that contains much of the same content as the book.

I would, however, recommend not pushing your kid into programming if he's not showing an interest in it. Just because you love it doesn't mean your kid will.

[1] http://pine.fm/LearnToProgram/
[2] http://pine.fm/LearnToProgram/?Chapter=00

(5) I have trouble understanding Ruby and I'm 27... ;) - Carlos
... really? I mean, yeah, sure if you're looking at the bizarre stuff that people write for code golf, definitely. But all of the control structures are dead simple to understand, and stuff like "Hello world" is about as succinct as you can get. - Bob Aman
I prefer python to ruby, but they're pretty similar. - Mk12
Yes, I'd prefer Python too. But I have to admit there are reasons for me disliking Ruby that probably can't be blamed on Ruby itself. The Eclipse plugin we're using is bad, I've never learned Ruby from ground up but by reading and modifying sometimes complex code written by others and I'm probably just too stuck on Java-like languages. Besides, I don't like the syntax or coding conventions. - Carlos
22
[+2] [2009-10-25 19:32:44] George Edison

Try VisualBasic Express. It's a simple language that will teach him concepts he will need for lower level languages. It's also free.


23
[+2] [2009-10-25 23:15:27] Darren

The language itself isn't important; kids are capable of amazing things where they're interested and motivated. The challenge is finding something that allows them to do "cool" stuff with their computer, to spark that motivation. That's why LOGO and BASIC were popular in the 80s, and Hypercard in the 90s, because they targeted the core functionality of the computer on which they ran. Python/Ruby/etc. may be appropriate as a language, but they alone aren't suitable for getting someone interested in programming.

There was a project called Shoes that provided an easy SDK for graphics, media, and web, on top of Ruby. It was designed specifically for kids and casual programmers. Unfortunately it's not around anymore, but was the most interesting and suitable LOGO/BASIC/Hypercard replacement for modern computing that I've seen.


24
[+2] [2009-10-26 01:58:35] gs.

Im posting this through a proxy, because I do not ant this associated with my account. I am 14, and I am very well fluent in c#. I started learning it at 13 through web development


You should be proud to be this fluently at an age of 14, don't hide it. - Dykam
25
[+2] [2009-10-31 16:59:11] arriu

Programs like MIT's Scratch [1] and Microsoft's Kodu [2] are very good ways to teach the fundamentals behind programming without being overwhelming.

Kodu is geared towards developing games on your xbox so this may appeal to him.

[1] http://en.wikipedia.org/wiki/Scratch%5F%28programming%5Flanguage%29
[2] http://research.microsoft.com/en-us/projects/kodu/

Kodu is pretty awesome, I like it, and I'm a grown man. :) - Rob
26
[+2] [2009-10-31 17:35:22] Maxim Zaslavsky

I think C# is the way to go (someone already mentioned it, but whatever). I actually am 12 years old right now (no joke) and I'm doing C#, but I started programming at 7, so who knows. C# is quite easy to pick up as long as you can understand some of the most important concepts, but that's why we have Stack Overflow. I was able to do so, and I've done some work for a non-profit, so I think, after a little bit of learning, a kid can really get going with C#.

Now, the kid in question is oriented towards games, so why not try XNA? XNA provides a great design interface (very simple to use - drag & drop!), and once you understand the basics, it is very fun, especially for a kid this age. I really think you should try going the XNA route, and see how the kid feels.


27
[+1] [2009-10-25 19:34:21] Stephen Cox

Revolution at http://runrev.com

It's an english like lang based on HyperTalk, though it's grown a lot since the 80's. Runs on Mac, Windows and Linux. VERY easy to learn.

I don't use it much anymore, since it's VERY hard to find developers for. And in the real world it's about being marketable. But it's a wonderful language.


28
[+1] [2009-10-25 23:33:40] vaitko

Turbo pascal should be the best choice :)


29
[+1] [2009-10-25 23:55:28] Nikolas Sakic

He is 11 and he is into games. That's a hint. You should get him started in something that will not only be fun but he will learn something. In fact, there are two projects geared towards beginner programmers and/or those who are into games and would like to start programming.

  1. Karel programming: This is use by Stanford university. In fact, all comp. sci students must use this before jumping into Java or Scheme courses. This is very beginner. If you wanna look at the environment, the link below is for the course where Karel is introduced to the students:

  2. Alice programming developed at CMU. In fact, the whole concept of Alice project is to teach programming to kids while making it fun at the same time. There have also been books published on the subject. You can search for Alice on Carnegie Mellon University site or or google it.

Karel Programming - introduced to Stanford students [1]

[1] http://www.youtube.com/watch?v=0LoKDDRlfZc

30
[+1] [2009-10-26 00:46:59] Domchi

11-year old kid is old enough to tackle any language.

I'd recommend Scratch, Logo and similar for kids up to, say, 10.


31
[+1] [2009-10-26 01:13:24] daf

I'd suggest trying out some of the tutorials at http://squeakland.org/tutorials/

Squeak [1] is an implementation of Smalltalk with an emphasis on interactive graphical programming.

The squeakland tutorials and material has been designed to help teach maths and science to children using interactive programming... and sometimes they use games programming to motivate participants.

[1] http://www.squeak.org/

32
[+1] [2009-10-26 04:11:56] community_owned

I was glad to see someone recommend Squeak. It is Smalltalk, and is easily graspable by anyone -- anyone with a sustaining interest, that is. And it comes with games. It is the only programming language my son was exposed to at roughly the age of 11, and it kept him busy for many a happy hour while I toiled away in C++ and enjoyed myself with ruby at the office. He's not interested in programming now (which I think is a fine thing -- it's way too time consuming unless you have a real bent for it), but it was accessible at the time, and it IS Smalltalk, which we all know is foundational in much the same way as Scheme or Lisp or even Fortran.

I remember when my nephew got really interested in programming, just about that age, when he gave up model railroads for PC's. He'd be embarrassed to be reminded of this now, but he developed the idea that what he really needed was a Fortran compiler. But no one really agreed enough to get him one! Too bad, but I think now, ten years later, that when he isn't using Fortran he uses Mathematica in his daily work. Ha ha on all of US!

Today, for a game, I think a good option would be Objective C for the iPod touch. Sad to say it is not really open, but it is interactive in a way that ought not to be ignored by someone who wants to write games for the future, and the SDK is free although you do need an Intel Mac. There are aspects of interacting with the iPod/iPhone that are a bit of a chore, and if that seems to pose too much of a barrier (not to mention the $100 to get your program onto the device), then there is nothing wrong with coding Actionscript 3 for Flash to get going with games. The SDK is free and downloadable and although it does not have multitouch support in its release version (fairly essential for really nice interactive gaming), it eventually will, and AS3 is a modern enough language, having the concept of interfaces, to be able to get across some essential ideas of design patterns. And the virtual machine (the flash player) is everyone now, even Linux.

The advice to learn Ruby or Python seems unnecessary. These are both wonderful high level utility languages with loads of opportunities to pick up first class concepts of object orientation, generation of executable code, full feature libraries and first class objects themselves, but he will pick them up himself as necessary. I have found the documentation for both to be quite thorough, and the documentation for Ruby to be more useful on a day to day basis. I am thinking in particular of the pickaxe books and the fact that the libary modules and their members were rendered into a windows help file for easy searching. Google, though, have chosen Python, so what do I know?

I'm posting this as myself, rather than commenting on someone else's post, because I don't have enough cred points or whatever the points are called, in order to vote something up or down.


33
[+1] [2009-10-26 04:25:34] Norman Ramsey

Lots of great choices: Inform 7 [1], Scratch [2], Ken Kahn's ToonTalk [3], Logo, DrScheme [4], Alice [5]. DrScheme will teach the most principles but is limited pretty much to 2D graphics-style games. Inform 7 is brilliant for text adventure games, but it is deep and wide and probably beyond the cognitive development of the typical 11-year-old. In ToonTalk, every program is a 3D animation—and it teaches concurrent, distributed programming! Way cool.

Have fun!

[1] http://www.inform7.com
[2] http://scratch.mit.edu/
[3] http://www.toontalk.com/
[4] http://www.teach-scheme.org/
[5] http://www.alice.org/

34
[+1] [2009-10-26 20:37:11] cetnar

Hackety Hack [1] is a free Ruby-based environment aiming to make programming easily available to beginners, especially teenagers. Its driving force was an essay titled The Little Coder's Predicament written in 2003 by why the lucky stiff (AKA _why). It argued that programming isn't as readily available as it was in the Commodore 64 days, and that something should be done about it to help beginners tinker with their computers.

Hackety hack on Github [2]

[1] http://en.wikipedia.org/wiki/Hackety%5FHack
[2] http://github.com/steveklabnik/hacketyhack/

35
[+1] [2009-10-28 19:55:03] John K

When there are 11 year old network admins out there [1], I wouldn't worry about picking an easy or starter language. Kids pick up things fast if they have the interest. If you give your child a mainstream programming language he will be much better off after learning it (and finding a lot of code samples online for further discovery) because then he can start immediately applying it. Too often we try to dumb things down for kids.

Edit: So my vote of languages to start with are either C# (Microsoft platform) or Java (for other platforms, even Windows)

[1] http://www.networkworld.com/news/2008/032708-netkid.html

36
[+1] [2009-11-01 14:32:29] pkario

Kids can learn anything, if you can teach it.

Do NOT underestimate them.

Start with the language you know best and love.

I started mine with C (18 years ago) when SHE was 4 years old.

She understood pointers before she was 5 and was touch typing before she could write.

She is better than me nowadays and sure has a better job and education than I (works for a bank in the City).


That's inspiring. - sfjedi
37
[+1] [2009-11-01 14:52:14] Meinersbur

If Blender Game Engine or XNA is worth considering, you should also consider

Unity 3D [1]

It's impressive how much you can do with it without much programming. Also it is much more beginner-friendly than the Blender Game Engine (although this is subjective).

Supported languages are JavaScript (default), C# and/or Boo (Python variant). Note that these are not languages meant to learn programming.

Bonus: Basic version is free (as beer) since version 2.6

Overview on all three here [2]

[1] http://unity3d.com/
[2] http://blog.nobel-joergensen.com/2009/09/12/xna-unity-blender-game-engine-report-on-3d-game-engines/

38
[+1] [2009-11-04 07:39:44] RCIX

I can't believe no one has mentioned Lua [1]. It has a simple yet readable syntax, powerful features, and above all Does Not Use Zero-Based Arrays! Great for any young kid learning to program.

[1] http://www.lua.org

(1) Love2D might be worth a look if using Lua. It's very simple and easy to use. - Nexus
39
[+1] [2009-11-05 01:06:10] Rob Russell

Be prepared to try several languages. The write/run/test feedback cycle is more important than the syntax.

With my daughter I did some Logo, then some html/jquery/svg, then some Java, then most recently she's taken to Python. She's not an expert in any of them but each time she had a little interest we sat down and ran some code.

Spend the time talking about their goal and writing a little code that they can play with. It can be a great shared experience if you don't get hung up on details and just make it part of playing. Give up when they get bored and just come back to it another time.


40
[+1] [2009-11-12 05:25:27] Bender Bending rodriguez

Okay... I am 11 years old, and I can program in C, C++, C#, PHP, Java, Perl, Python, ASP, ASP.NET, BASIC, and pretty much everything else that is used by "real programmers" For example, I would use the win32 API, instead of scratch. So, pretty much any programming language is good for an 11 year old, as long as he has a fairly big brain capacity.


Wow, that's impressive. How do you have time to learn all of those? When did you learn your first programming language? - Paul Mendoza
(1) Are you 11 years old in Hex, by chance? - sfjedi
41
[+1] [2009-11-27 09:21:27] Adam Luchjenbroers

No matter what language you start him on, when you try and discourage bad habits remember to take the effort to properly demonstrate the better methods you're trying to push him towards.

I started on QBasic during my primary school years (not that long after learning to read and write). I made heavy use of goto in my programming, which was discouraged by my father. While I got the message that this was a 'bad' way to code he didn't really do enough to teach me a better way.

It wasn't until many years later, when I was working my way through a QuakeC tutorial for creating a flamethrower that the concept of subroutines clicked. The light just went on and goto became a thing of the past.

Point is, I didn't learn to avoid goto by being told not to use it. I learned not to use goto by learning better techniques.


42
[+1] [2009-12-17 00:17:00] ChurchSkiz

It would really depend on what skills your child already has. If they are completely new to programming, you might want to look at doing simple web design with HTML or Javascript. It's an easy way to get them to interact with the computer. The advantages are that there's immediate visual feedback of what they are doing and coding errors are easy to spot.

Most kids might be excited at being able to put a dog on the screen that barks or makes a funny face when they click it. That can be taught pretty quickly with HTML/Javascript. Once they are familiar with functions, variables, program flow, etc. should make the transition to a more standard programming language a little easier to grasp.

For starting languages, I would probably start with Pygame or XNA. Pygame is a really good choice because there's not a lot of "overhead" to teach before you can start getting things on the screen. That is very important for beginning programmers. There's also a lot of online resources available for games compared to some other lesser used languages. XNA is another great toolset for quick implementation, but there would be a bit more background needed on the syntax.


43
[0] [2009-10-25 19:24:55] Letterman

Depends on the kid..... I don't know any languages in which it easy to develop games (except gamemaker script language).. bu personally I'd start with a serious language.. C#, or java, or whatever you use, and actually learn him the basics of programing, if he get it, he will thank you indeed when he'll grow up. if not, nothing happened, search for something simpler.

I've done so with my brother.. and he found his own way to develop games with .net's WinForms :)


my dad was a tard, but he did buy me an Apple ][e when I was a teen... best thing he could have done for my developmental knowledge... I was coding for myself and the school in very little time. - Hardryv
well yeah, but you can achieve it with a pc too :P - Letterman
44
[0] [2009-10-25 21:43:35] Alexandru

At the age of 13 I wrote my own Minesweeper in Pascal (including mouse and cheats). Unfortunately, at the age of 14 I learned how to format my harddrive with int 13.

Definitely your son should try a more advance programming language than Basic. These days, Python is even simpler/popular than Pascal. Give him a computer to play with (including installing operating system and taking it apart) and let him learn by trying.


45
[0] [2009-10-25 22:16:16] FrustratedWithFormsDesigner

VisualBasic 6 was great as an introductory language. I used to teach it to kids (mostly simple games like frogger and pacman -type things) in that age range. If they wanted, they would later move to more advanced courses in Java and C/C++. When we had to transition to .NET, it was a little rough at first and it wasn't as teachable.

I still think VB .NET is probably a good choice. The syntax being in plain words (rather than cryptic symbols) seemed to help with beginners. The visual Forms Designer is probably plenty powerful enough for whatever he needs, he can have a nice interactive GUI app up and running in no time. Also, if you set him up with the Express Edition, it's not likely he'll be turned off by a complex IDE (seen it happen with Eclipse).


46
[0] [2009-10-25 23:28:08] dicroce

Microsoft Small Basic [1] is a great environment for learning programming. It's free, and he can get started and work through the PDF documentation...

Once he's mastered that, he can move on to Dark Basic [2].

Finally, he can learn C programming and use the DarkBasic engine's C bindings to leverage the graphics knowledge he'd have at that point combined with a real language.

[1] http://msdn.microsoft.com/en-us/devlabs/cc950524.aspx
[2] http://darkbasic.thegamecreators.com/

47
[0] [2009-10-26 00:48:44] James Black

How about Logo. In Coders at work the interviewer in the second chapter talked about how you wrote a game in Logo.


48
[0] [2009-10-26 01:07:16] Kendall Helmstetter Gelner

One thing that might be very cool for an 11-year old, is iPod Touch programming. While Objective-C may seem a bit heady at first, it is not unmanageable for a young kid if you start out using some game creation frameworks like Cocos2D [1].

The thing that makes it compelling is that's it's something easier to take along with him to show friends what he has done.

[1] http://code.google.com/p/cocos2d-iphone/

If you want to buy an iPod touch, and pay $99/yr just to put the applications on the device (or you could jailbreak it). But anyway, I think a non garbage collected language would be too hard. - Mk12
49
[0] [2009-10-26 01:47:22] smbrant

Take a look at ruby.

Let him play with irb and start with these 3 programs:

first:

puts "hello world"

second:

puts 1+2

third:

1.upto(10) do |n|
  puts n
end

Negative vote definitely not justified. Ruby does have its warts and horns, but it's definitely possible to write clear and simple Ruby. Plus, the times, upto, etc. methods more closely complement the way people (not just children) think. - Justin Poliey
50
[0] [2009-10-26 01:51:09] geoff

I think a good language would be c#


51
[0] [2009-10-26 04:15:13] user170609

Python with PyGame [1]. It should allows him to writing game, such like Mario, etc. Perhaps Ruby is more flexible language, but I never used it.

[1] http://www.pygame.org

52
[0] [2009-10-26 05:41:10] FateZero

Groovy Programming Language with GroovyConsole and buy him his first programming book =)


53
[0] [2009-10-26 08:30:59] KalEl

I remember finding BASIC very interesting when I was 11. However, a few years later when computer course came to our school we started with LOGO.

I guess there are many languages like ruby, C#, python which are the BASIC's of today in terms of easiness to get started with. Of course, at 11 years I'd probably stick to the very basics of these languages.

Unlike programs though, I would suppose the examples would not change from my days to today. I'd suppose lesson will still start with simple loops, and be complete with the Tower of Hanoi!


54
[0] [2009-10-26 09:37:54] DavidA

Flash and actionscript. You get visual feedback easily and you can then start to program games with simple onKeyPress methods.


55
[0] [2009-10-26 21:12:48] Chris Masterton

SmallBasic from Microsoft. We use it to teach artists and designers how to make simple games. Some -not I - say the 11 year old would be more advanced.


56
[0] [2009-10-26 21:13:14] jprete

StarLogo [1]. Mitchel Resnick wrote a whole book ( Turtles, Termites, and Traffic Jams [2]) about exploratory simulation of parallel living systems based on examples coded by students using the language. It's a thin book but interesting from the ALife perspective; I've always wanted to try playing with it (but never had the time).

[1] http://education.mit.edu/starlogo/
[2] http://rads.stackoverflow.com/amzn/click/0262680939

57
[0] [2009-11-01 16:18:35] Sergey

QBasic? I had a lot of fun with it :)


58
[0] [2009-11-01 19:55:23] Ian Leslie

This past summer I started my 12 year old out with "Game Programming for Teens" by Maneesh Sethi published by Course Technology PTR in 2009 (ISBN - 10:1598635182, ISBN - 13:9781598635188). It uses Blitz Basic [1] which is a bit different from the other suggestions here but it is targeted for game programming which is reflected in its API. He has really enjoyed using it.

The language is procedural. The API is, however, well suited for creating games.

The book does a good job of explaining how to create programs and it progresses nicely from simple to complex. It stats out with character (as in alphabetic) based games and moved on to graphics.

We would recomend it,

Ian

[1] http://www.blitzbasic.com/

59
[0] [2009-11-20 07:16:17] CuriousTiger

LOGO. I learnt it when I was 12. It was quite fun then. I heard Alice is pretty good too.


60
[0] [2009-12-04 00:20:22] warren

I started on an ancient version of BASIC when I was 10. By 11, I'd moved to Turbo Pascal, and at 12 I was on C++.

Don't under-estimate kids' abilities: if they're interested, they'll learn it :)


61
[0] [2009-12-04 00:25:31] Luke101

I would have to say BlitzBasic [1]. It is very easy to learn and he can get a game up and running in no time. Or he can try darkBasic which is a fun language too. BlitzBasic featured a Book called programming games for teens.

Sample Code:

' drawline.bmx

' draws a cross hair at the mouse position using DrawLine

 Graphics 640,480

 HideMouse 

 While Not KeyHit(KEY_ESCAPE)
     Cls
     x=MouseX()
     y=MouseY()
     DrawLine 320,240,x,y
     DrawLine x-2,y,x-10,y
     DrawLine x+2,y,x+10,y
     DrawLine x,y-2,x,y-10
     DrawLine x,y+2,x,y+10
     Flip     'Refresh Frame
  Wend
[1] http://blitzbasic.com/

62
[0] [2010-05-03 02:48:28] mtwisterr

Try blender you can make the models and use logic bricks to program them or python you can make any type of game from simple to complex.


63
[0] [2010-05-16 17:26:02] Coyote21

I say, don't enforce a language for him... Try to give him choices of languages that he might like, and let him choose which one he likes best... Also don't think that he can't grasp a big language like java or C++, he can... Every language may be appropriate, if he chooses it. I've started using Delphi, when I was 12, and three years later I was grasping a little of C. And I had to do all this single handed, without anyone to tell me which language to use, or not to use.


64
[0] [2011-03-29 17:59:43] KidTech101

I am write now 11 and I know C# of the back of my head. I only started this year too. Look up C# for sharp kids on the internet and you can download a free ebook from microsoft because they did create the language. I think it is easy though.I create complex programs in it.

go to www.youtube.com/user/Kidtech101 and you can see my C# videos there


65
[-1] [2009-10-25 20:35:28] Joel

80x6 Assembler. Get them while their young ;-)


(2) Actually my Pa taught me machine code when I was 4, wrote my own OS by 6. - ChaosPandion
66