-
Boolean switch arguments should not be present in function definition. This violates Single Respnsibility Principle
-
Try to follow REST
-
Follow DRY
-
Try to write Pure functions
-
A class/module should have only one reason to change. Single Responsibility Principle
-
Use code linting tool.
-
Use dead code detector tools
-
Add strict timeouts for every resource that you are using. Circuit breaker pattern
-
Use log rotation
-
Decide rotating policy : by date or by size or a mix of both