Ask Slashdot: Best Book Or Game To Introduce Kids To Programming?
New submitter connorblack writes "My very gifted nephew is about to turn nine this month and I would love to get him some sort of fun, engaging book or game to introduce him to the basic concepts of programming. I have a feeling if approached correctly he would absolutely devour the subject (he is already working through mathematics at an 8th grade level). What I first was looking at were the Lego Mindstorm programmable robots- which would have been perfect, if only they weren't around 300 dollars... So if there's anything similar (or completely new!) you've either heard praise about or used yourself with your kids, it would be great to get a recommendation. Also if possible I would want to stick to an under 100 dollar budget."
Would a nine year old be able to follow The Little Schemer?
Isn't your nephew's future worth the price of a couple days at Disneyland?
My kids started using Scratch when he was 6 and has written two player race car games and other stuff with it.
Google for Redstone Circuits and go to town. There's that running EE joke that you can build any logic circuit with nothing but NOT gates. Redstone pretty much gives you exactly that.
For real programming, maybe just throw them at http://learnpython.org/ and give them an ipython shell to play with until they're ready to start programming a dungeonmaster / chatbot for their minecraft server. That's my plan with my kids (10 & 7) at the moment.
How about you first show him this:
http://www.mygamefast.com/
Then you show him the ORiley Python Book.
That was the first game I ever changed the code on. Of course, first we played it as is to figure out what we could do. Then we went into the code and broke it - who says bananas can't fly straight through solid buildings?
Damn_registrars has no butt-hole. Damn_registrars has no use for a butt-hole.
Is there a video game he is particularly fond of?
Games that are easy to hack and mod are a great start - they are tweaking something they already love. I wasted many hours of my elementary school days tweaking the rules.ini file to make command and conquer's AI a more capable opponent. That lead to scripting one player levels in an attempt to make my own campaign. That lead to...nothing at all....but it might be a start.
The tools available today seem a lot more complex, but also a lot more open than they were when I was young.
Good luck.
-I only code in BASIC.-
Check out Code Monster: http://www.crunchzilla.com/code-monster
It's a game-like site that teaches javascript programming.
Scratch, visual multimedia programming system from MIT. http://scratch.mit.edu/
My 8 year old and 10 year old play around with this and love it. Strange coincidence that it's built using Scala which I use in my day job AND that means I can start using them in my child programmer sweat shop.
ZZT is how I got my start. It is a very old game and of course the "graphics" are terrible, but the game is solid and it's fun. Once you get a little way in you'll come across levels such as The Bank. The Bank is an amazing room (for a ten year old) and for me the concept of programming soon clicked from that experience. In The Bank, you see how you can combine pushers, blocks, and sliders to create a really cool combo lock mechanism. Then, as I recall, there is a little character with some basic programming.
Anyway, the neat part of ZZT is the editor. You can make your own rooms and as you build your own rooms, you are effectively programming. From simple things like placing monsters and choosing types of breakable walls, to creating physical machines using pushers and sliders, and, finally, to programming using the ZZT object scripting language which allows you to create objects that react to events (e.g. 'touch', 'shot', 'timer', etc.) with actions (e.g. 'print message, aka talk', 'move', 'shoot', etc.).
ZZT is the game that did it for me. After a little time there I was moving on up to Turbo Pascal and QBasic. I don't know what contemporary kids would think of ZZT today, but I would think you might be able to convince them to give it a shot.
ZZT is freely available to download and still has a small dedicated fan group following online.
http://scratch.mit.edu/
It is what has gotten my 5 year old engaged.
Good security is based upon reality and common sense. Common sense is a function of having common knowledge.
This blog posting seems apropos:
http://hostilefork.com/2012/03/06/a-word-on-programming-education-and-spacechem/
I don't care if it's 90,000 hectares. That lake was not my doing.
Get him something larger in scope than programming. Look into astrophysics or biology or botany sciences, or aeronautics, mechanical engineering, chemical engineering, materials sciences, anything engineering related or high math or high tech, but not programming.
Think about promoting something where they seek interests and career lines that might work for themselves or create their own corporation.
If you want to shoot for an interest leading to most likely employment, get him something for marketing and business. Entrepreneurship as well.
I don't recommend these as careers for everyone, but there will be lots of need.
Alternatively, get him a book on how things are actually made, not how they say they are on How It's Made or Mythbusters.
Something with a lot of good photos of Injection molding, machining, forging, casting, metal injection molding, powdered metallurgy, 3D printing and Selective Laser Sintering, Fused Deposition Modeling, etc.
It's an educational game involving programming robots. You're an astronaut with a mission to explore space, and you have a variety of robots at your disposal. You can control them individually, or more effectively, you're supposed to program them to be automated. Sort of third-person FPS with RTS elements, where you code your own units. It uses its own somewhat OOP language, and is just fun with variety of missions.
Considering how old it is it's kinda still expensive, but give it a go (there should be a demo iirc).
the game
The main development language is C# for using XNA. Microsoft gives you a GREAT example driven e-book (and free tutorials are everywhere), and all the tools FOR FREE. He can program straight to PC (and Xbox if you buy the $99 a year membership), and use a controller for interface for either. It's pretty easy to pick up, as it explains just about everything. I've been programming since Kaypro][ days (when I was 6), and to get started, you really don't have to go much past if/then, basic integer and boolean variables. I'm still using my 2nd grade level programming skills today!
Without hesitation, I'd go with GameMaker along with the book The Game Maker's Apprentice, and followed by The Game Maker's Companion. The first book includes an older version of the GameMaker software which is all that will be needed to complete the exercises. If your child likes the process, move onto the second book which covers more advanced concepts. Those books, along with either GameMaker 8.1 or GameMaker: Studio should your child want to move onto more current versions, will all fit within your $100 budget, and it will only cost you $20 or so to get started.
The books are excellent learning tools and the GameMaker software itself was originally created by co-author and Utrecht University professor Mark Overmars to teach programming. It's a great way to get ones feet wet and very good games can be created with it if one is willing to put in the effort. If you child wants to move on to more popular languages, GameMaker will provide them an excellent foundation for learning them.
+0 Meh
I seriously attribute my love for adventure games to help me refine my troubleshooting skills and drive to "find the answer".
I believe that it's troubleshooting and the drive to find the answer that makes someone stand out in the work place, whether it's programming or anything else.
I played a lot of Kings Quest, The Secret of Monkey Island, Space Quest, Myst, etc.
RoboRally, if you can get it!
Richard Garfield, creator of Magic the Gathering, didn't win awards for it for nothing.
Race your robot against your opponents to get to the goal first. Program your robot figurine for each round selecting and ordering basic movement cards (forward, forward x2, backwards, turn left, right, u-turn) using a larger set. If you are damaged, your set of cards to choose from reduces until your registers you've programmed lock into place. Teaches how to think ahead and very basic programming skills. My five-year-old has been slowly learning how to play by laying out cards in order and having me beep-boop the robot into horrible predicaments he programs out. After two games, he seems to have gotten the hang of it and is able to guide the bot to the goal without falling into pits. Soon he will be up against me and my lasers; then he'll know true pain.
Way back when, at that age, I first got interested in programming via the game Robot Odyssey (http://en.wikipedia.org/wiki/Robot_Odyssey)
According to the Wikipedia page there are modern day clones and derivatives:
"The engine for the game was written by Warren Robinett, and variants of it were used in many of The Learning Company's graphical adventure games of the time, including Rocky's Boots, Gertrude's Secrets, Gertrude's Puzzles, and Think Quick!, all of which are similar but easier logic puzzle games. The gameplay and visual design were derived from Robinett's influential Atari 2600 video game, Adventure.
Carnage Heart involves programming mechas that then fight without any user input.
Cognitoy's MindRover is a relatively recent game which is similar in spirit to Robot Odyssey, but uses different programming concepts in its gameplay.
ChipWits by Doug Sharp and Mike Johnston, a game for the Apple II, Macintosh, and Commodore 64 computers is similar in both theme and implementation, although the interface to program your robot differed.
Epsitec Games created Colobot and Ceebot in recent years for Windows machines which are in many ways spiritual successors to Robot Odyssey. In these games the player program machines to accomplish puzzle tasks. Instead of using logic flops, switches, etc., these two games instead teach the player the fundamentals of object oriented programming like Java, C++, or C#.
One Girl One Laptop productions created a spiritual successor called Gate which uses the same digital logic puzzles as Robot Odyssey.
There is also a clone written in Java, Droidquest, which contains all of the original levels and an additional secret level."
Yep, get him into Python, he should be able to pick that up quickly enough to keep him interested but it will also offer him challenges for years if he wants it. Or... at the risk of being downmodded (again) for not being a MS/Nokia hater, you could get him a cheap WP7 phone (plenty around right now with WP8 coming) and take a look at the amazing TouchDevelop scripting environment that lets you write anything from one-liners to quite complex apps right on the school bus, mostly without having to actually write anything - you connect up various blocks and pipes to get results. https://www.touchdevelop.com/
"Our opponent is an alien starship packed with atomic bombs," I said. "we have a protractor"
My 6 year old has been asking me to teach him to program. He played with kturtle for a little while, but turning is relative to the current position and in degrees, and he always ends up distracted by games and videos.
Recently I've started teaching him TI-86 Basic. He is very excited about printing things to the screen.
A couple of pros:
* It's self contained with no distractions
* Commands are all on the screen so you don't have to memorize them
* It's one place where Basic is still useful
* IO is simple
The other TI calculators are probably just as good, but I had the 86 in my closet.
https://www.facebook.com/digitizeicm -- Show your support for the digitization of the Iron County Miner newspaper archiv
I'm pretty sure there's new versions of it out, and it's a good start to what engineering (in pretty much any sense) is all about.
Mentors are the most significant educational source. Match wits with the kid. Say "look what I can do, and here's how I did it". Then challenge the kid to do something similar himself. Build from "Hello, world" to a text adventure, or an animation, or a video game, or whatever else he shows some talent in. First just spend time with the kid, and let the programming interest grow naturally. If it doesn't, don't force it.
You do not have a moral or legal right to do absolutely anything you want.
RPG Maker. This game is a great way to introduce programming logic. I use it in classes and the students that use this game have no problems with going into programming...
~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~
"First things first -- but not necessarily in that order"
-- The Doctor, "Doctor
http://en.wikipedia.org/wiki/Logo_(programming_language)
Will get him ready for the computer skills needed to learn the ideas that keep many big US companies old apps running.
Domestic spying is now "Benign Information Gathering"
I started with programmg in Applesoft Basic on an Apple ][, and mostly doing stuff like drawing lines and figuring out how to make it draw a circle. (trigonometry was a lot more interesting when I found how you needed to know about sine and/or cos to do that) . If it had existed at the time, I wish I had started programming in c++ instead of having to struggle with those concepts later. Set up a basic graphic framework, give him the tools to draw dots, lines and circles and get him started in writing programs to draw stuff. Just because you are using a C++ compiler doesn't mean you have to know how to write object oriented programs to start with - he could start off with writing pure functional programs, but it will be a lot better to start with a full fledged programming language that will be capable of anything he cares to write, and will be a solid choice for any project.
The synax is easy - the biggest difficulty will be in learning what the various errors mean, but he'll get the hang of that pretty fast.
I'd suggest mabey QT if you want to do windows & widgets stuff.
Don't waste time mucking around with a toy language.
Why C? Let them learn it the right way from the start, get them a MIX emulator for them and give them the three volumes that collect dust on your top bookshelf.
Check this out: https://www.youtube.com/watch?v=wgJfVRhotlQ
Obfuscated Perl is redundant.
As someone who's been into programming since grade 4 (good lord.... 28 years), I can't THINK of anything larger in scope than programming in terms of any of the things you mention:
Programming teaches logic, patience, critical thinking, planning, and attention to detail.Programming teaches you to examine any given topic (whatever you're most into) in a systematic, rigorous way. It teaches you to look at how any given thing works and to try to analyze it and break it down into understandable components.
Programming encourages an interest in math, the sciences generally, and boosts self confidence.
And all of that is just personal growth.
In terms of career, it's a marvelous business for entrepreneurship: almost no start-up cost, distribution cost, etc.: If you're smart, capable, and interested in the world there's no end of business opportunities. And if entrepreneurship isn't your thing, there's no end of jobs for well-paid self directed work as a programmer. And because it can be done essentially from anywhere and at any time (I work nights so as to spend time with my family, and can work small amounts while we're vacationing to pay for expenses), it provides amazing flexibility to engage in other aspects of life, to travel, to explore other interests, etc.
It's true that it's getting easier for anyone to program, and that there are more tools out there to help people who don't really know anything about programming do things programmatically. Neither of these things is going to decrease the need for capable programmers.
I could go on.... but I've got programming to do!
I started programming at about 6 because I wanted to make games. So I came up with game ideas and then learned what I needed to in order to make them. Then I got into web programming 10 years later because I wanted to make web sites. I make a good living making other people's web-sites and still make own as well when I need something. I needed to track my time for clients and projects so I wrote my own site to do it the way I wanted to do it. I needed to track my finances so I wrote a site to do that.
What does the kid want to do that involves programming?
What problem does he want to solve?
Java is free and it's not too terribly difficult to get a simple software rendering app going that he can start rendering math functions and apply what he's learning to graphical visualizations.
C# is free as well now. Visual Studio Express is more than sufficient to do graphics programming. Even JavaScript has gotten good enough to handle software rendering using the Canvas. I used that to show students how parameters affect a function during my student teaching.
Money is not a problem. Everything is free. There are tons of resources on the internet and libraries tend to have programming books. The problem is that you're looking for a solution to a problem the kid hasn't found yet.
Work Safe Porn
Learning a programming language is just as useful as learning a foreign language. It teaches kids how to communicate with computers. Programming by itself may be a questionable field to get into as a life long career path, but as a skillset it can benefit many professions. Are there any sciences, engineering or math career paths that would not benefit from the ability to let computers do the repetetive work?
I started programming at 8 or 9 years old with QBasic on an old computer. My dad just showed me how to do one or two simple programs (simple loops), but I learned pretty much everything by myself with the included documentation. I know QBasic is a really shitty language for real projects, but it's fun for a kid because it has a lot of basic functionalities included, he can easily do simple I/O, draw graphics, etc. A few years later I moved to php, and then to C and C++. I've forgotten pretty much everything about basic, but I know how to code. So just give him a QBasic environment, QB64 provides an IDE that looks and behaves like the original QBasic/QuickBasic IDE, and runs on modern hardware/software. It should be perfect. (Though I don't know how good the documentation is)
The Incredible Machine, or its modern counterparts.
A book co-written by a father-son team as the son learns Python programming developing small games
http://www.manning.com/sande/
And when you're done with that, move on to slightly bigger games, still in Python
http://inventwithpython.com/
First off, pencil and paper. Teach them how to make and play wirh Turing machines and finite state automata. Enjoy the awe when you tell them about the Universal Turing Machine.
Low-level:
The HP15C User's Manual and an HP15C, or HP's 15C iApp.
High-level:
David Touretzky's Gentle Introduction.
My personal favourite language of all time: Icon.
S.
A fun board game, and excellent for teaching the basic mental skills used in queuing up a list of instructions and then having them all execute in the order that you specified.
http://www.amazon.com/Wizards-of-the-Coast-217580000WOC/dp/B0009HLSP0/ref=sr_1_1?s=toys-and-games&ie=UTF8&qid=1350385716&sr=1-1&keywords=robo+rally
(no sig)
Sure, it was published over 30 years ago, and FORTH gets (and often earns) the the moniker of a Write-Only Language,
but it allows concepts and code to be tested interactively, and as a language written in itself, lets the interested user learn
how it works, not just how to work it.
It's not exactly a resume builder, but knowledge of FORTH makes the concepts underlying other languages a lot easier to comprehend.
Mission: To provide products that consume time and energy as entertainingly as permitted by the laws of thermodynamics.
SpaceChem is amazing, but the learning curve might be a bit rough on younger kids. I still have trouble around the seventh or eighth planet. On the other hand, I loved Ninja Gaiden at that age, so who am I to talk?
AC troll got trolled
sysadmins and parents of newborns get the same amount of sleep.
This is a fantastic mathematical, programming, and home creation project which you can do with your son. Its a great teaching tool, and looks awesome once your done. Take a look! The best part is that its relatively cheap as well.
http://www.ladyada.net/make/conway/
"It's not stealing if you don't get caught!"
I picked up the iPad version of this puzzle game and was surprised at how much of my old coding brain cells it woke up. This sort of thing is a great way to introduce the concepts of programing without jumping right into code. I also concur with the RoboRally mentions out there.
This question keeps poping up on slashdot every once in a while!
Get him a lego mindstorm, let him build robots that he controls from his computer code, then flash the java firmware on it uses java instead of the OEM UI interface.
Mind storm http://mindstorms.lego.com/en-us/Default.aspx
Java firmware http://lejos.sourceforge.net/
Disclaimer: don't have fun instead of him. I find I play with my kids mindstorm just as much as he does.