A follow-up to "The 5.2 kB editor I had to write because nothing else fit." Shipping a package to npm is one thing. Actually using it in the production app it was built for is a different exercise entirely. You find the edge cases nobody would catch in unit tests, because they only show up … Continue reading What I learned putting my own text editor into production
When Your Zod Schema Lives in the Database: A Builder Pattern Story
This is a story about a form that validated itself, not because the schema was hardcoded, but because we built it at runtime. I was working on a feature where admins could spin up their own forms. Drag a field in, mark it required, set a max length, save, ship. By the time an end-user … Continue reading When Your Zod Schema Lives in the Database: A Builder Pattern Story
Beyond CRUD: 6 Ent ORM Patterns After a Year of Schema Evolution
Your Ent app works CRUD, type-safe queries, migrations, edges all good. But real-world needs like fuzzy search, atomic counters, and row-level locking quickly go beyond the basics. We’ve been running Ent across 100+ schemas on a Go backend that processes real payments. An AuditMixin ensures consistent audit logs, and custom decimal.Decimal mappings keep money calculations precise across orders and currencies. What … Continue reading Beyond CRUD: 6 Ent ORM Patterns After a Year of Schema Evolution
