| ▲ | benldrmn 3 hours ago | |
Funny, I had a similar experience TAing “Intro to CS” (first semester C programming course). The student was certain he encountered a compiler bug (pushing back on my assumption there was something wrong with their code, since while compilers do have bugs, they are probably not in the code generation of a nested for loop). After spending a few minutes parsing their totally unindented code, the off-by-one error revealed itself | ||
| ▲ | zehaeva 2 hours ago | parent [-] | |
Off topic, but I feel like this could be made into a Zen Koan from The Codeless Code[0]. You're almost there with it! | ||