r/ProgrammerHumor • • Aug 03 '26

Meme claudeWatchingMeCodeByHand

16k Upvotes

232 comments sorted by

View all comments

Show parent comment

1

u/Street-Catch Aug 03 '26

I find the majority of issues I end up fixing are less about figuring out what a piece of code does than figuring out how it's possible for odd inputs to arise.

Like it's trivial enough to know seg fault is caused by some code trying to index out of bounds but understanding why an out of bounds case even exists (instead of slapping on some if else and forgetting about it) is the hard part.

It might be an industry specific problem though

2

u/Ben_0 Aug 03 '26

This is why I don't trust LLMs for anything that can segfault (like C/C++ or anything involving pointer manipulation)

2

u/sisisisi1997 Aug 03 '26

I usually use this kind of analysis to understand how pieces interact with each other, which helps me build a mental model of how data travels and how it is transformed - this last part is usally what helps catches bugs.