Top all-time · #23181
lukasschwab.me • blog
Personal blog · lukasschwab.me/blog/genprogramming
lukasschwab.me • blog is a personal blog at lukasschwab.me about programming. Since 2024, 3 different Hacker News readers have linked it 6 times. It is still writing: the last post was on 2026-10-02, and you can follow it by feed.
Too few sampled comments (1) to say how often HN recommends it.?
Why HN links it
HN readers link this blog for a Go technique called "Safety Through Incompatibility", which uses typed IDs so wrong kinds of IDs can't be passed around. The linked posts cover deriving safe ID types in Go.
Summarised by Claude from a sample of 1 HN comments that link here. Each comment is marked recommending, critical or neutral (citing without judging); how this works.
What Hacker News says?
My friend Lukas has written about this before in more detail, and describes the general technique as "Safety Through Incompatibility". I use this approach in all of my golang codebases now and find it invaluable — it makes it really easy to do the right thing and really hard to accidentally pass the wrong kinds of IDs around. https://lukasschwab.me/blog/gen/deriving-safe-id-types-in-go... https://lukasschwab.me/blog…
Comment linking /blog/gen/safe-incompatibility.html
on “Use Your Type System”Submitted Three-Step Lifted Interfaces as a story · 4 points
HN discussionSubmitted Poisoning a Go Cache as a story · 3 points
HN discussionSubmitted Show HN: Explore your own Spotify history as a story · 1 points
HN discussionSubmitted Bring Your Own Linter (Go) as a story · 1 points
HN discussion