Back to articles

Tag archive

#generics

L
Sep 15, 2026

Life Before Generics

I came from PHP, which has no type parameter, into a Go that didn't have one either. Both languages taught the same habit: substitute discipline for the compiler. Here is the audit that found 44 copies of four functions, the generic cores they collapsed onto - reader, manager, query builder, processors, transactional handler - and the bill I pay for it.

Sep 15, 202621 min read0 reactions0 comments
O
Sep 15, 2026

One Read Core, and the Code That Proves It

Not sketches: the generic core that carries history for every entity in my service, the declaration that instantiates it for one domain, and a live consumer sitting on top of it that I am not proud of - it was never registered in any daemon, so cache invalidation has never run in production. Plus the question I have no answer to: how declarative should this have been?

Sep 15, 202616 min read0 reactions0 comments