@Tak stop half-assign work, start fully-assed work!
Seriously tho, I find ChatGPT useful for exact this case: I need some throwaway thing in a language/API I’m not familiar with. Ie it’s a replacement for what used to be “copy from stack overflow”. It’s great at least for that!