3 ms·
It is good to be forced to recognize errors and manually send them up the stack. Too many programmers have a "not my problem" attitude about errors. 1. Immedi
by flippinburgers 4y ago
It is good to be forced to recognize errors and manually send them up the stack. Too many programmers have a "not my problem" attitude about errors.
1. Immediately when the error occurs, send it to logging with all required data to find the exact point of failure + data to understand the "why".
2. Send the error up the stack.
If you do these two things, your systems written in golang will be resilient.
- kaba0 4y agoSo rely on the programmer countering their laziness instead of having these things the default in the language also known as exceptions?
- flippinburgers 4y agoExceptions are a nightmare.
- kaba0 4y agoThat’s your subjective opinion.