Make your objects immutable. Enums for well-defined values should be used. Choose the correct logging level. Never sensitive data like passwords or other personal information. Use standard loggers in any language, but this should be taken care of. Try to ensure that messages are in top-parsable format.

•5m read time•From levelup.gitconnected.com
Post cover image
Table of contents
Production code: Top 5 Best practices1. Immutability2. Enums for well-defined values3. Logging4. Dependency Injection5. Composition over inheritance
1 Comment

Sort: