Briefle
LearnGlossaryPricing

Briefle words · Code & architecture

Long parameter list

Also called code smell

A warning sign that a function takes so many inputs that calls become hard to read and easy to get wrong.

Say it to an AI

TypeScript helper createShipment that books a parcel via carrier.book. Take a single parameter object (a ShipmentRequest type) rather than a long parameter list, so call sites read as named arguments and the two booleans can't be swapped.

How an expert would brief the stronger version of “Book a shipment”.

See it

Try it as a puzzle →

A warehouse app's helper that books a parcel with the carrier after an order is packed.

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

Why: Six parameters, two of them booleans side by side ('insured', 'signatureRequired'), is the classic version of this smell.

Related words

  • Single responsibility principle
  • Flag argument
  • Side effect
  • Parameter object
  • Named arguments
  • Options object
  • Utils file
  • Domain type

Room 3 · Functions & structure

Learn “Long parameter list” in a five-minute lesson

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