pattern @team/pattern-builder-over-options-bag

Builder Over Options Bag

When a constructor or factory function takes more than 3–4 parameters, replace the options-bag with a fluent builder.…

Skill
@team
Domain
coding-style
Version
1.0.0
Quality
0.0
Edges
0 out · 0 in
Tokens
81/270/513
$ aoe install @team/pattern-builder-over-options-bag

Projection

Always in _index.xml · the agent never has to ask for this.

BuilderOverOptionsBag [pattern] v1.0.0

When a constructor or factory function takes more than 3–4 parameters, replace the options-bag with a fluent builder. A builder surfaces required vs optional configuration, is self-documenting at the call site, and is easy to extend without breaking callers.

Source

aoe-engine/examples/coding-style/primes/compiled/@team/pattern-builder-over-options-bag/atom.yaml