I wasn't happy with that outcome, so I decided to invest some time in debugging through the test, tracing the flow of data, looking at the state of the stack frames and finally figured out what was wrong -- the solution was so simple and so obvious that had I just given the effort up front, it would have saved me some time and tokens.
It's a valuable lesson to take to heart. I think it's better to go from tinkering and trying it out yourself, than to go straight to AI and then giving it a go independently.
Obviously it all goes out of the window as soon as AI coding comes into question, and that's why I learned that I actually _don't_ want AI to generate code for me. I would only ask it simple questions like "how do I do X in Go" or in some other system, but the implementation I do myself, otherwise I lose this "having to consider every error path" part, which is apparently very helpful when your goal is to write resilient software
I don’t view this as a hollowing out of my skill tree, I view it as freeing myself to focus on modern skills I need to develop. Such as learning how to steer LLM context windows towards maintainable solutions in large codebases.
I’m sure I’ll be thankful now and then that I know how to manually sift through stack traces for answers. But I expect those moments to be rarer and rarer. I basically never look at machine code, but I bet that used to be an important skill for programmers many decades ago.