|
|
|
|
|
by franticgecko3
541 days ago
|
|
I'm worried readers of this article will be horrified and believe this kind of DIY error handling is necessary in Go. The author has attempted to fix their unidiomatic error handling with an even more unidiomatic error framework. New Go users: most of the time returning an error without checking its value or adding extra context is the right thing to do |
|
Thank you.
Feels like Go is having its Java moment: lots of people started using it, so questions of practice arise despite the language aiming at simplicity, leading to the proliferation of questionable advice by people who can't recognize it as such. The next phase of this is the belief that the std library is somehow inadequate even for tiny prototypes because people have it beaten over their heads that "everybody" uses SuperUltraLogger now, so it becomes orthodox to pull that dependency in without questioning it.
After a bunch of iterations of this cycle, you're now far away from simplicity the language was meant to create. And the users created this situation.