3 ms·
I've written modules of 500-1000 lines which worked perfectly the first time I successfully compiled it. In any large block of code, I'm prone to make occasion
by cperciva 17y ago
I've written modules of 500-1000 lines which worked perfectly the first time I successfully compiled it. In any large block of code, I'm prone to make occasional typos (usually missing semicolons, unmatched parentheses, not declaring a temporary variable, not #including a required header, etc.) but the compiler always finds those for me, so it's not really a problem.
I've also written code which didn't work at all, and then spent days debugging it. But I've learned that I'm really bad at debugging code, so instead I take the time to plan out what my code is doing so that I can get it right the first time.