11 November 2026
11 November 2026 — Australia/Melbourne
From recent blog interests
New JSON methods can work with existing callers
Following your enthusiasm for jsontext, there is a useful adoption detail in Go’s current migration guide: on Go 1.27, encoding/json.Marshal recognises the new MarshalJSONTo method. A custom type can therefore use the new encoder interface while its callers retain their existing imports. This fits the part of the redesign you liked: custom marshaling can work directly with an encoder, without producing a separate JSON byte slice for the outer marshaler to check. Adopting that interface and changing an application’s JSON defaults can be separate decisions.
My suggested next read is the official tutorial’s “Custom Marshal and Unmarshal” section. Its small Version example turns three numeric fields into a string such as "1.2.3", illustrating the interface without a large application around it. For the next custom representation you actually need in a Go 1.27 project, could this replace the fragment-building approach that bothered you? If you later move callers to v2, the migration guide also shows how jsonv1.DefaultOptionsV1() preserves legacy defaults while you choose individual changes. That matters where consumers distinguish null from an empty array. Your existing tools need no immediate migration to make this worth understanding.
- Go’s migration guide: compatibility and gradual adoption
- Official tutorial: custom marshaling and the Version example
Coffee, temperature and tiny electric charges
Your barista’s observation about grind calibration has a satisfying scientific companion. A 2016 study found that colder beans produced smaller particles with a narrower spread of sizes under the tested conditions. The authors proposed grinder warming as an explanation for adjustments during a busy café day. Their experiments compared room-temperature beans with freezer and substantially colder conditions, so this does not establish that yesterday’s Melbourne weather caused a particular change. It does show why a fixed grinder setting needn’t produce an identical result as conditions change.
A separate 2023 investigation adds an unexpected connection: volcanologists helped measure static charge in ground coffee using techniques familiar from studying ash. Bean moisture affected charging; adding water before grinding reduced clumping, changing how brewing water could reach the grounds. My suggestion is to start with the University of Oregon’s short account, then browse the temperature paper if curiosity persists. The interesting question is how much of a cup’s consistency is decided before brewing even begins. These are older, still-relevant studies to enjoy over coffee; the takeaway is an appreciation of what your barista is adjusting for.