[flagged]
My son (9 yrs old) used plain JavaScript to make a game, and wants your feedback
21–30 of 493 posts
Re: My son (9 yrs old) used plain JavaScript to make a game, and wants your feedback
#22[flagged]
Re: My son (9 yrs old) used plain JavaScript to make a game, and wants your feedback
#23Re: My son (9 yrs old) used plain JavaScript to make a game, and wants your feedback
#24Echoing the other comment - as a tired dad, I struggle with the Math questions :)
Re: My son (9 yrs old) used plain JavaScript to make a game, and wants your feedback
#25Re: My son (9 yrs old) used plain JavaScript to make a game, and wants your feedback
#26I would recommend a couple of small things for the code. Variable names are usually ALL_CAPS if they never change (for instance const PI =3.142) and camelCaseForOtherVariables. snake_case_variables aren't really used in JavaScript, but aren't technically wrong. Also, it's usually good to put variables into nested data structures with hashmaps instead of comparing based upon array index. This is in "the real world" though, in academic computer science algorithms based on position in lists are more common.
If you want to get what we call "Code Review" a good way would be to feed your source code into a LLM to have the LLM give feedback based on your code, and recommend improvements. Most people like Claude best for dealing with code nowadays.
I would also recommend putting your code on Github so that people can check it out.
Very impressive!
Re: My son (9 yrs old) used plain JavaScript to make a game, and wants your feedback
#27Re: My son (9 yrs old) used plain JavaScript to make a game, and wants your feedback
#28[flagged]
It would have been a great game in 1998 when plain javascript was what everyone was using. But OP has clearly put a lot of effort in and still gotten not-great results because they aren't making use of more modern tooling (game engines etc) to turn each hour of effort into more productivity.
Children do not need to "turn each hour of effort into more productivity". They need to learn stuff (and feel good about their learning, so they keep doing it).
Re: My son (9 yrs old) used plain JavaScript to make a game, and wants your feedback
#29Re: My son (9 yrs old) used plain JavaScript to make a game, and wants your feedback
#30[flagged]