24 ms·
Here are some of the techniques that I use for C, C++, and C#. Read every checkin twice before committing it. I find and fix many bugs by doing this. Keep a l
by tjalfi 9y ago
Here are some of the techniques that I use for C, C++, and C#.
Read every checkin twice before committing it. I find and fix many bugs by doing this.
Keep a log of errors and problematic APIs. Periodically review your code for methods and idioms that you tend to misuse. I find it easier to spot one incorrect call to an API when looking at all uses of it.
Enable all compiler warnings and use warnings as errors. It is easier to spot regressions when the build is normally silent. If a project has a noisy build then use the normal warning level and enable additional warnings over time.