@davidbragg It’s good to be reminded that there’s a real variety of programmer brains. (Thanks!)
I think by coding. I think that’s part of why I like strongly typed languages so much…I can write and explore the problem space until the compiler tells me my approach can’t work, and then I can restructure it. Comments come after (or during, if there’s a particularly gnarly section!)
Your approach sounds horrible for me 😅 which obviously isn’t to say it’s better or worse. Glad it’s working for you!