hownot2code.com
Use available tools to analyze your code
You should carefully read all the documentation for every program entity you work with. But you surely understand that one can’t foresee every possible issue. Use static analyzers.