News for hackers. Stuff that matters.
Re:Thirteen Years of Go by flippinburgers on Friday November 11, 2022 @08:25PM (#33569033)
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.

Re:Thirteen Years of Go by kaba0 on Friday November 11, 2022 @08:59PM (#33569242)
So rely on the programmer countering their laziness instead of having these things the default in the language also known as exceptions?
Re:Thirteen Years of Go by flippinburgers on Saturday November 12, 2022 @02:44AM (#33571002)
Exceptions are a nightmare.
Re:Thirteen Years of Go by kaba0 on Saturday November 12, 2022 @04:16AM (#33571483)
That’s your subjective opinion.