When Should You Split a Function—and When Should You Keep It Together?
Compare TypeScript order-submission refactorings to decide which extractions create useful boundaries and which scatter one operation across dependent fragments.
I’m Alex, an engineering manager in Bangkok. I write about how browsers work, how systems fail, and what it takes to ship reliable AI features.
Compare TypeScript order-submission refactorings to decide which extractions create useful boundaries and which scatter one operation across dependent fragments.
Review a thumbnail-processing API to separate caller intent from implementation tuning, choose justified defaults, preserve legitimate overrides, and make failure and cancellation responsibilities explicit.
Trace a TypeScript checkout request to distinguish empty forwarding layers from useful adapters, dispatchers, and explicit dependency boundaries.
Adapt an editor example into TypeScript to design a small vocabulary of useful range operations, keep UI policy explicit, and make current requirements simpler without implementing speculative features.




