Standard Search
About 8 results
https://rednafi.com/go/error-translation/ · 12 Apr 2026
Translating errors at layer boundaries so storage details don't leak into the handler or, worse, into client responses.
https://rednafi.com/go/to-wrap-or-not-to-wrap/ · 7 Mar 2026
Exploring the tradeoffs between wrapping errors at every return site versus wrapping only at boundaries, with no definitive answer - just honest tradeoffs for the kind of software I write.
https://rednafi.com/go/context-cancellation-cause/ · 24 Feb 2026
How Go 1.20's WithCancelCause and Go 1.21's WithTimeoutCause let you attach a reason to context cancellation, plus a gotcha with manual cancel and the stdlib pattern that covers every path.
https://rednafi.com/go/splintered-failure-modes/ · 30 Nov 2025
Simplify Go error handling by consolidating validation and system errors. Learn when to return boolean vs error for clearer failure modes.
https://rednafi.com/go/anemic-stack-traces/ · 10 Feb 2024
Learn how to build custom error types in Go to create stack traces without runtime overhead, inspired by Rob Pike's Upspin error handling.
https://rednafi.com/go/retry-function/ · 4 Feb 2024
Build retry logic in Go without reflection using generics. Implement exponential backoff and configurable retry strategies with type safety.
https://rednafi.com/python/go-rusty-with-exception-handling/ · 2 Feb 2022
Implement Rust-style Result types for type-safe exception handling in Python using generic Ok and Err types inspired by Black formatter.
https://rednafi.com/misc/use-strict-mode-while-running-bash-scripts/ · 8 Nov 2021
Enable Bash strict mode with set -euo pipefail to catch errors early. Exit on failures, treat unset variables as errors, and handle pipeline failures properly.