My son (9 yrs old) used plain JavaScript to make a game, and wants your feedback
431–440 of 493 posts
Re: My son (9 yrs old) used plain JavaScript to make a game, and wants your feedback
#432Re: My son (9 yrs old) used plain JavaScript to make a game, and wants your feedback
#433Re: My son (9 yrs old) used plain JavaScript to make a game, and wants your feedback
#434Congrats 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…
Re: My son (9 yrs old) used plain JavaScript to make a game, and wants your feedback
#435Re: My son (9 yrs old) used plain JavaScript to make a game, and wants your feedback
#436Re: My son (9 yrs old) used plain JavaScript to make a game, and wants your feedback
#437Re: My son (9 yrs old) used plain JavaScript to make a game, and wants your feedback
#438Re: My son (9 yrs old) used plain JavaScript to make a game, and wants your feedback
#439Re: My son (9 yrs old) used plain JavaScript to make a game, and wants your feedback
#440Earlier quoted context omitted.
I was young at the time, but when I TA'd, the lesson I'd try to impart here is to take the time to learn the lexicon of the compiler error, and understand what it is trying to tell you. Then it's not just "code broke yo" but "is here is what is wrong." Much better to learn to have a conversation with a deterministic compiler than an LLM that'll just cook up some random junk when it gets backed into a corner.
I feel like after all these decades of research and implementation, compilers (and runtimes) ought to be better at directly explaining what's wrong. Python has made some significant strides in this area recently, but in my mind it's nowhere near enough.
My limited experience with the Rust compiler is that its very good at this, at least for a total newbie to Rust.