When I was a professor I always found it harder to debug code written by my students as compared with debugging code I had created myself. This is now even more of an issue when I try to debug code created by an LLM**.
* See my blog of 1 January 2025.
** No, coding is not "solved." That's the capitalists lying again. There are still lots of bugs to find and fix.