Skip to content

Keeps old and new versions side by side (parse_date_v2, fooFixed, legacyFoo, app_new.py) ​

Code that already exists: one of the ways AI coding agents bloat software, from lessloc's pattern catalog. lessloc gives every session the rule: one implementation per rule.

What makes keeping old and new versions side by side a bad practice? ​

The standards that call it a bad practice: DRY; Clean Code G9 Dead Code.

What does lessloc do about keeping old and new versions side by side? ​

lessloc gives every session the rule: one implementation per rule. lessloc catches it as versioned-copy, and as junk-file for files.

  • versioned-copy (tier 1): A definition beside an older version of itself, such as parse_date_v2 next to parse_date.
  • junk-file (tier 0): A new backup, copy, scratch or report file (refused before it lands, unless the request names it), or cache files, build output or logs that would be committed.

The other patterns in Code that already exists:

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