
Learning Go
An Idiomatic Approach to Real-World Go Programming
by Jon Bodner · first published 2021
86% recommend14% neutral
Why HN recommends it
Idiomatic, practical introduction to Go that explains concepts like contexts clearly; praised for getting experienced programmers up to speed and for suiting readers who already know another language.
Summarised by Claude from recommending comments
Go is rapidly becoming the preferred language for building web services. While there are plenty of tutorials available that teach Go's syntax to developers with experience in other programming languages, tutorials aren't enough. They don't teach Go's idioms, so developers end up recreating patterns that don't make sense in a Go context. This practical guide provides the essential background you need to write clear and idiomatic Go. No matter your level of experience, you'll learn how to think like a Go developer. Author Jon Bodner introduces the design patterns experienced Go developers hav
Affiliate links. As an Amazon Associate I earn from qualifying purchases.

Learning Go by Jon Bodner, particularly the newest edition, is also excellent. An aside: are there any other Go books, particularly ones the explore more specific topics, that are recommended? I've read a few that…
on “Go structs are copied on assignment (and other things about Go I'd missed)” ↗'Learning Go' by Jon Bodner [0] was the book I chose. A front-to-back reading got me up to speed with the language. [0]: https://www.oreilly.com/library/view/learning-go-2nd/9781098...
on “Go 1.23 Released” ↗> assumes that I already know about variables, operators, functions, Boolean expressions, et al. Learning Go by Jon Bodner is a good choice. It seems to assume that Go is the reader's second (or tenth) language.
on “Today I learned that bash has hashmaps (2024)” ↗Learning Go by Jon Bodner is a great introduction. Learn Go with tests helped me a lot too: https://quii.gitbook.io/learn-go-with-tests/
on “Ghostly is a simple, lightweight, and fast full-stack framework for Golang” ↗Go contexts are something that I found confusing for a while. I had assumed they were much more complicated than they actually are. I read the context section in Jon Bodner's Learning Go and realized they are actually pretty simple and I was just over thinking them.
on “Context Control in Go” ↗In case no one has mentioned it, Learning Go, an Idiomatic approach to real world programming, by Jon Bodner is my favorite Go related book and one of my favorite programming books in general. https://books.google.com/books/about/Learning_Go.html?id=vjA...
on “Idiomatic Go (2016)” ↗I started reading Learning Go by Jon Bodner, and in the preface, it introduces the idea of "boring code." > When it comes to building things that last, being boring is great. No one wants to be the first person to drive their car…
on “Ask HN: How to Create “Boring” Software?” ↗