Recent submissions

Comment · 9 months ago
ScopeGuard is a Go linter that helps you write more readable and maintainable code by suggesting tighter variable scope.
Comment · 11 months ago
Comment · 1 year ago
Comment · 1 year ago
Comment · 1 year ago
Comment · 1 year ago
Having looked at the problems that can arise with errors.As:

https://news.ycombinator.com/item?id=44959638

Let's now look at how errors.Is can introduce subtle bugs that can affect the reliability of error checking, especially when trying to determine the root cause of an error.

How one letter can make such a difference…

Comment · 1 year ago
I recently dove deep into an unexpectedly tricky issue in Go error handling — how using errors.As with pointers vs. values can silently change program behavior, and I wanted to share what I learned.

The Blog Post

I walk through the core mechanics, point out how the dynamic type (pointer vs. value) matters, and offer a simple, effective two-step approach to prevent these silent bugs.

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton