mdashikjs/blog
70 articles published

Md Ashik's Blog

Backend engineering, system design, and the practical tradeoffs behind shipping software that holds up in production.

Backend

Factory Functions: When `new` Feels Wrong

Classes and `new` are fine until you need to return different shapes, delay construction, or validate inputs before committing. Factory functions handle all three without ceremony.