Error translation in Go servicesTranslating errors at layer boundaries so storage details don't leak into the handler or, worse, into client responses.Redowan Delowar·Apr 12·8 min readFollowGoError Handling
Go errors: to wrap or not to wrap?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.Redowan Delowar·Mar 7·13 min readFollowGoError Handling
What canceled my Go context?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.Redowan Delowar·Feb 24·12 min readFollowGoError HandlingConcurrency
Splintered failure modes in GoSimplify Go error handling by consolidating validation and system errors. Learn when to return boolean vs error for clearer failure modes.Redowan Delowar·Nov 30·4 min readFollowGoError Handling
Anemic stack traces in GoLearn how to build custom error types in Go to create stack traces without runtime overhead, inspired by Rob Pike's Upspin error handling.Redowan Delowar·Feb 10·5 min readFollowGoError HandlingLogging
Retry function in GoBuild retry logic in Go without reflection using generics. Implement exponential backoff and configurable retry strategies with type safety.Redowan Delowar·Feb 4·3 min readFollowGoTILError Handling
Go Rusty with exception handling in PythonImplement Rust-style Result types for type-safe exception handling in Python using generic Ok and Err types inspired by Black formatter.Redowan Delowar·Feb 2·2 min readFollowPythonError HandlingTyping