None of these are clever tricks. They're small habits that turn bugs you'd find in production into bugs you find while typing. Each one is shown as naive code, the bug it hides, and the refactor.
Source: [Dev.to](https://dev.to/nazecode/5-c-habits-that-catch-bugs-before-production-4305)