R
22
c/coding-for-beginnerstaylor.susantaylor.susan7d agoProlific Poster

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?
2 comments

Log in to join the discussion

Log In
2 Comments
masontorres
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_joel
the_joel7d 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