powRSS
Home Recent Glimpses Shuffle Blogs Random

New: Explore conversations across blogs with powRSS Mentions

Redowan's Reflections

Redowan

Redowan Delowar's reflections on software, systems, and sundry.

August 2026

September 2026

October 2026

Top Words

  • testing
  • postgres
  • context
  • proposal
  • accepted
  • standard
  • tests
  • library
  • goroutine
  • leak
  • isolation
  • wait

All posts (55)

u/SnooSongs6758 asked on r/golang: I’m creating a REST API using Golang v1.25, Gin v1.10.0, and Validator v10.20.0. I have a PATCH endpoint where, when the address attribute is: undefined -> keep the original data null -> delete the original data contains something -> replace the original data with the new Right now...
I’m talking in the context of industrial programming. A few statements I believe to be true: If you aren’t doing it hands-on, your opinion about it is very likely to be completely wrong. Being influential doesn’t automatically make you right. Talking about coding and delivering software under real constraints are...
A few months back, Pi’s creator Mario Zechner gave a talk on developing Pi and slowing things down. It resonated with me so much that I wanted to try out the harness. I’m also getting increasingly wary of how bloated Claude Code and Codex have gotten over time. I have no idea what these harnesses are putting into...
Over the years, I’ve participated in a few system design interviews. Some went my way and others didn’t. One thing has stayed consistent: when I’m designing an online system, transaction isolation almost always comes up in the discussion. When the requirements call for a CP system, I usually go for a...
Over the years, I’ve participated in a few system design interviews. Some went my way and others didn’t. One thing has stayed consistent: when I’m designing an online system, transaction isolation almost always comes up in the discussion. When the requirements call for a CP system, I usually go for a...
Go’s proposal for package flag was accepted on July 23, 2026. It fixes an awkward case in programs that read the same setting from command-line flags, environment variables, and defaults. Suppose a server has a -debug flag whose default is false: fs := flag.NewFlagSet("serve", flag.ContinueOnError) debug :=...
Go’s proposal to allow examples with any signature was accepted on July 8. Today, an example must look like func ExampleXxx(). go/doc skips the function as soon as it sees a parameter or result. The example doesn’t appear in go doc or on pkg.go.dev. The restriction comes from the two jobs an example can do: appear...
These days, unmanaged go func() calls don’t appear as often as they used to in the early days of Go. At this point, everyone knows Dave Cheney’s maxim to “never start a goroutine without knowing how it will stop”. Even so, I still occasionally run into unsynchronized go func() calls doing fire-and-forget work. I’m...
While going through the Go generics proposal, I got curious about how the compiler implements it. Compilers usually handle generics in one of two ways: With full monomorphization, the compiler turns generic code into concrete, type-specific code. It generates a separate version for every set of type arguments the...
Go 1.26 rebuilt go fix from scratch. If you haven’t tried it yet, give it a spin: it rewrites the code in your module to use modern language and library features. It has quickly become one of my favorite features, and LLMs are a big part of why. Models tend to use old APIs, and sometimes they deny that a new API...
Say you put a cache in front of Postgres to speed up reads. A hot key expires: the next request misses the cache, so it queries Postgres to refill the key the key is popular, so while that first query runs, a hundred more pile in for it they all miss too, and each fires its own query Postgres ends up running a...
I ran into the classic “range over a channel” leak while working on a custom cron scheduler. I’ve debugged it on prod many times before, but writing one myself in a small piece of code reminded me how easy it is to write bugs like this even when you know about it. Here: on each tick, the scheduler dispatches the...

Page 1 of 5