22
My cousin's kid asked me how to make a website move in his school library
He's ten, and we were looking at a simple game on his laptop. He pointed at the screen and said, 'How do you tell it to go left?' I showed him a basic line of JavaScript, just moving a square a few pixels. His eyes got wide and he said, 'So I can make it do anything?' That one question made me realize how much we take the basics for granted. For someone starting from zero, even moving a pixel feels like real magic. What's a simple 'magic' moment you've seen someone have when they wrote their first bit of code?
3 comments
Log in to join the discussion
Log In3 Comments
sethtorres7d ago
Wait, are we sure that "I can make it do anything" feeling is actually good for a ten year old? I've seen kids get that excited and then immediately crash into the wall of "why won't this stupid thing work" when they make a typo. They don't have the patience to debug a missing semicolon at that age. A lot of them just get frustrated and quit. My nephew spent an hour trying to make a square go left and ended up crying because he forgot a closing bracket. Maybe showing them a full game engine or Scratch blocks would be better than raw JavaScript. Let them drag and drop cause and effect before they have to deal with syntax errors.
5
masontorres1mo ago
That "so I can make it do anything" look is the best. For a ten year old, I'd say stick with moving that square around for a bit. Let him break it and figure out why it broke.
3
the_joel1mo ago
Yeah, that's the real way to learn. I read an article once about how the best programmers often started by just messing with simple code until it failed. They called it "creative breaking." The kid gets that instant feedback, and fixing their own mistake teaches more than any step-by-step guide ever could. Just moving a square and changing its color is a full world of cause and effect at that age. The goal is to keep that "I can make it do anything" feeling alive, not kill it with too many rules right away.
1