Briefle
LearnGlossaryPricing

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.

Study A · the stronger one
Study B · the weaker one

Why: B's 'sleep', 'slugify' and 'isValidEmail' have nothing in common except living in 'src/utils.ts'.

Related words

  • Single responsibility principle
  • Flag argument
  • Side effect
  • Parameter object
  • Long parameter list
  • Named arguments
  • Options object
  • Domain type

Room 3 · Functions & structure

Learn “Utils file” in a five-minute lesson

Start free
AI can build almost anything. The bottleneck is saying what you want.
WordsPricingTermsPrivacyRefundsContact
© 2026 Briefle