Skip to content

Options, flags, parameters or config for needs nobody named ​

Code nobody needs: one of the ways AI coding agents bloat software, from lessloc's pattern catalog. lessloc gives every session a rule against it and catches it as mode-flag.

What makes options, flags, parameters or config for needs nobody named a bad practice? ​

The standards that call it a bad practice: YAGNI (Extreme Programming); Fowler: Speculative Generality; Clean Code F3 Flag Arguments; Google engineering practices: over-engineering, "functionality that isn't presently needed".

What does lessloc do about options, flags, parameters or config for needs nobody named? ​

lessloc gives every session a rule against it and catches it as mode-flag.

  • mode-flag (tier 2): An existing function gained a boolean flag parameter.

The other patterns in Code nobody needs:

Released under the Apache-2.0 license. · llms.txt