sajad torkamani

You will create bugs no matter what you do. No amount of testing, type-safety, tooling, or anything else can prevent bugs. There are just too many edge cases in most software for your brain to handle.

Accept that there will be bugs. Focus on having systems and processes in place that notify you immediately when things go wrong and that make it easy to debug issues. For example:

Focus on minimizing bugs in the most critical parts of the software. Bugs are part of life, but let’s minimise their severity.