Some code conventions
Mar 29, 2022
I’m thinking about this conventions, tell me what you think about that:
- Use LBYL when you can, EAFP when you must.
- In every function you can throw exceptions in order to explicit software bugs.
- Error labels in the user interface only to explicit user errors, included in the software working domain.
- One or some optional very big try catch in order to save log data, and then crash.
- Logs must be divided in two types: standard logs, and warning logs. (software errors are explicited only from exceptions)