Briefle words · Code & architecture
Utils file
Also called junk drawer
A catch-all file named 'utils' or 'helpers' where unrelated functions pile up because there is no better home for them.
Say it to an AI
TypeScript money.ts module in src/cart: a cohesive module built around a Money domain type ({ cents, currency }) with formatMoney, addMoney and applyDiscount. Keep unrelated helpers like slugify or sleep out of it; no generic utils file.
How an expert would brief the stronger version of “Price helpers”.
See it
Try it as a puzzle →Where an online store's shared helpers for cart prices live in the codebase.
Why: B's 'sleep', 'slugify' and 'isValidEmail' have nothing in common except living in 'src/utils.ts'.
Related words
Room 3 · Functions & structure
Learn “Utils file” in a five-minute lesson