ChatGPT as a teacher
Today I came to the conclusion that without a good understanding of asynchronous programming in Javascript, I cannot hope to come up with a game that uses asynchronous events for all player interaction and other asynchronous events to talk to a remote ChatGPT for NPC actions. My code was a mess, and even more important, after 3 refactorings of my game.js class following ChatGPT's suggestions, my mind was a mess as well. And (see other posts) I don't think that handing ChatGPT the control over the overall concepts, design, architecture, is a good idea. So I asked it to explain asynchronous JS programming to me. And it did. Quite exceptionally. See, in normal life you can learn something like this in several ways: You can read a book. I actually have a good JS book. A very, very tedious affair. I have 30+ years of serious programming experience (not counting my "geek teenager programs the heck out of his Sharp MZ-80A with 48K RAM and 1K ROM" time here). A JS book is 95...
Kommentare
Kommentar veröffentlichen