Live data from Hacker News

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

armaansahni.com

391–400 of 493 posts

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

#391
this is hands down the most heartwarming post I've seen in A WHILE.

Like most people said, I too started kinda like that. Coding/computers is an amazing journey with near infinite paths to choose from

I wish you the best and slow clap to the amazing dad that was there to set the stage and be there for him.

Made my week for sure!

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

#392
post #57

Earlier quoted context omitted.

Yeah, I was having the same issue. I couldn't tell why the weapon was not charged up. But sometimes on the second click it would work. But well done!

I think there are two improvement requests here: 1. Dont't allow button clicking when not the player's turn (expect tiny dev might be getting tripped up by async event handlers here) 2. Visually flag whether or not an ability is charged

Tiny dev is in good company re: async.

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

#394
post #391

this is hands down the most heartwarming post I've seen in A WHILE. Like most people said, I too started kinda like that. Coding/computers is an amazing journey with near infinite paths to choose from I wish you the best and slow clap to the amazing dad that was there to set the stage and be there for him. Made my week for sure!

thank you for the kind words!

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

#397

My loves goes out to your son! This is a great achievement that needs no comparing and it is a great achievement on its own. Well done to him and the whole family in supporting him!

thank you for the kind words!

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

#398

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…

I would suggest instead of inline comments write block comments, describing the behavior of a function or reasonably big and not straightforward section of code. Basically documenting what is not obvious just reading it without context.

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

#400

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 :)

That feel when a kid has better VCS practices than some people who get paid to develop software...
Post reply on HN