Live data from Hacker News

My son (9 yrs old) used plain JavaScript to make a game, and wants your feedback

armaansahni.com

381–390 of 493 posts

Re: My son (9 yrs old) used plain JavaScript to make a game, and wants your feedback

#384

I'm sure you've gotten a lot of good feedback, but a personal message for your kid: I am well into my adulthood, but I started programming from a similar place way back when. I was probably 12-13 when I was self-studying HTML/CSS/JavaScript. Today the web tech stack is way more complicated than it was when I was a kid, but its also way more capable. You can do so much with it now that was a dream - I was into pokemon…

thank you!

Re: My son (9 yrs old) used plain JavaScript to make a game, and wants your feedback

#385

Congrats kid! It's a fun app incorporating strategic and visual play. The code is well structured and clean. `onclick` handlers inline are a great way to get going with interactivity. One possible improvement could be to add event listeners dynamically after `load`. Another challenge might be to move stuff outside of the global namespace, especially variables. For a challenge and possible improvement, see if you can…

thank you for your feedback!

Re: My son (9 yrs old) used plain JavaScript to make a game, and wants your feedback

#386

I've been writing JavaScript since I was about your son's age and am now one of the editors of the JavaScript specification. His code is much much better than mine was at his age! I have one piece of feedback for him about the code itself, in case he's interested (of course the important part is the game, not the code, but I'm more qualified to give feedback on the JS): put `"use strict"` at the top of every .

Great tip. Thank you! :)

Re: My son (9 yrs old) used plain JavaScript to make a game, and wants your feedback

#387

This is incredible. Nice work kiddo! A couple of things I think would make the game a bit smoother are: - Feedback on the charging status, so I could more easily tell when I can use a move - Move the math prompt out of a modal if you can, and into the window, or something where I can click the answer Keep it up!

Charging status will be fixed for the next version.

He's also removing usage of prompt()/alert().

Appreciate the feedback

Re: My son (9 yrs old) used plain JavaScript to make a game, and wants your feedback

#388

Just a small comment, encourage your son (or do it yourself) to archive his site and code so he can revisit it years later. I did and it is amazing to learn again the code I did 25 years ago!

Good point! It is already in a repository, with every single tiny commit, including many mis-spelled commit messages :)

Re: My son (9 yrs old) used plain JavaScript to make a game, and wants your feedback

#389

I absolutely love this game. It is has so much personality. I love the monsters names. They’re so cool.

For the next version, the monsters have introductory story lines. And he has a giant list of more monsters he wants to add -- we'll have to have a discussion about what's reasonable.

Appreciate your comment.

Re: My son (9 yrs old) used plain JavaScript to make a game, and wants your feedback

#390

This is amazing Armaan, and I can't wait to see how it continues to grow! I'm so glad your parents encouraged you to do this.

if you're interested to get an email update when the next version comes out, he has a follow-my-journey link on the site.
Post reply on HN