Something just clicked for me about how ChatGPT writes code: it writes what it needs to do in english as a comment, then it writes code for that, and so on. remember, these LLMs predict what should come next based on what came before. so, it's sort of prompting itself!