TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

My 7-Year Old Daughter’s First Programming Experience

80 pointsby idancaliabout 11 years ago

13 comments

failrateabout 11 years ago
How young can a child learn to program?<p>While I&#x27;m not ready to indoctrinate my four-year-old into the monkhood of true geekery while he&#x27;s getting in his prime running around time, I was curious to see how logically he could think. My layman&#x27;s knowledge was that children began properly interpreting and creating rules around the age of six, while four was still wild imagination territory.<p>For my experiment, I created an extremely minimal programming game, like a very stripped-down version of RoboRally: <a href="https://dl.dropboxusercontent.com/u/5458223/robot_factory.jpg" rel="nofollow">https:&#x2F;&#x2F;dl.dropboxusercontent.com&#x2F;u&#x2F;5458223&#x2F;robot_factory.jp...</a><p>The image depicted is doctored. We had already completed four playthroughs the night before with a similar setup, however. He was able to figure out how to program the robot to collect all of its pieces (three Duplo blocks comprised the robot; successful completion of the robot wins the game). I demonstrated the rules once, and then let him try to play by himself with minimal guidance. One interesting strategy he discovered was placing the &quot;instructions&quot; (the cards with arrows) on the game board in order to create a path. <a href="https://dl.dropboxusercontent.com/u/5458223/robot_factory_redux.jpg" rel="nofollow">https:&#x2F;&#x2F;dl.dropboxusercontent.com&#x2F;u&#x2F;5458223&#x2F;robot_factory_re...</a><p>A few weeks later, we played it again, and I taught him how to make new &quot;instruction cards&quot;. We&#x27;re not yet at the place where we&#x27;ve done anything with variables and abstraction. Apparently he liked the game well enough, because he independently recreated it at school:
评论 #7543234 未加载
评论 #7543315 未加载
评论 #7543751 未加载
评论 #7543649 未加载
评论 #7543168 未加载
评论 #7544117 未加载
xendoabout 11 years ago
I don&#x27;t have kids, but even if I had this entry would still be totally worthless for me. It&#x27;s touching and nice, but can anyone learn anything from it? I don&#x27;t really think that there are any useful tips on teaching 7 year old anything, I would even say that it&#x27;s quite opposite, how could anyone post code like this in such context: @property (nonatomic) IBOutlet UILabel* label; ?
评论 #7543160 未加载
评论 #7543100 未加载
dgabrielabout 11 years ago
This has been a super fun thing in our house: <a href="http://scratch.mit.edu/" rel="nofollow">http:&#x2F;&#x2F;scratch.mit.edu&#x2F;</a> It&#x27;s also something a 7 year old can use on his or her own to learn concepts and make fun stuff.
评论 #7543232 未加载
评论 #7543923 未加载
评论 #7543077 未加载
评论 #7544886 未加载
评论 #7543069 未加载
jonalmeidaabout 11 years ago
This is brilliant and amazing to read.<p>What comes to mind is, we need a list of analogies in the most simplest form so that we can explain fundamentals like variables to kids. Hell, anyone who doesn&#x27;t know how to code really!<p>75. HN reads and smiles
评论 #7543339 未加载
nkuttlerabout 11 years ago
I think it&#x27;s great that the author found something that worked for him and his daughter, but this particular example seens a little complex. The first code I ever wrote was something like<p>10 PRINT &quot;HELLO&quot;<p>20 GOTO 10<p>That&#x27;s 3 or 4 steps. No IDE, no GUI, no variables. A program I could re-create completely on my own the next day.
评论 #7543090 未加载
evolve2kabout 11 years ago
I wrote a post some time back on teaching my kids to code, thought I&#x27;d include it here in case anyone found it useful.<p><a href="http://richiekhoo.com/post/18723300657/coding-with-kids" rel="nofollow">http:&#x2F;&#x2F;richiekhoo.com&#x2F;post&#x2F;18723300657&#x2F;coding-with-kids</a>
linuxhanslabout 11 years ago
Every now and then I do &quot;math&quot; with my son (5 years now).<p>I just use a terminal and &quot;bc&quot;. He loves to type in numbers and + or * and see the result. And for + we &quot;guess&quot; ahead of time what the result will be.<p>What amazed me early on: bc has variables. I explained it to him and somehow he immediately got it. You say A is 5 and B is 1 then A + B is 6.<p>His attention span is usually around 5 minutes, but each time it&#x27;s fun.
评论 #7543224 未加载
fit2ruleabout 11 years ago
My 6 year old and I often boot up the old 8-bit machine that I have reserved in a corner of my lab just for this purpose. I have to say - there is no better way to teach a 6-year old to code than to fire up a BASIC-running 8-bit machine from the 80&#x27;s and let &#x27;em at it. Something so satisfying about hearing him read out his code .. &quot;10 ... do this .. 20 .. do that ..&quot; ;)
FD3SAabout 11 years ago
That&#x27;s one of doing it...the other would be something like this [1]. Not ashamed to say I had to beat the whole thing the first time I saw it because it was so brilliant. And I normally hate pointless puzzle games.<p><a href="http://light-bot.com/" rel="nofollow">http:&#x2F;&#x2F;light-bot.com&#x2F;</a>
评论 #7543934 未加载
评论 #7543492 未加载
wallflowerabout 11 years ago
Check out Hopscotch:<p><a href="https://itunes.apple.com/us/app/hopscotch-coding-for-kids/id617098629?mt=8" rel="nofollow">https:&#x2F;&#x2F;itunes.apple.com&#x2F;us&#x2F;app&#x2F;hopscotch-coding-for-kids&#x2F;id...</a>
brcabout 11 years ago
The author correctly says &#x27;pieces of lego&#x27; into the cup - but previously says &#x27;playing with their legos&#x27;. I&#x27;m sure they wouldn&#x27;t say &#x27;the children were looking at the sheeps&#x27;, and then later on say &#x27;the children counted the sheep&#x27;.<p>For whatever reason, this irks me when reading as a grammar error. It&#x27;s like a klaxxon sounding in the middle of the sentence.
评论 #7545091 未加载
sideprojectabout 11 years ago
That was totally awesome + cute. I have 5-month old girl and can&#x27;t wait to teach her to program! :)
评论 #7543854 未加载
spacecowboyabout 11 years ago
I like the focus on variables and values - very cool! congrats!
评论 #7543125 未加载