Enable Any Strict Modes That Are Available

Mistakes will be made and it is better the compiler/interpreter catches them early before they turn into problems. Enabling any strict modes will force you to write better code, e.g.:

Many other compilers have switches to enable more thorough checking too. It may be worth looking at using a language that forces strictness by default such as C#, Go or Rust.