A developer must audit all code that creates file names. This includes code that builds file names from parts. A simple search for exact text will not find all places where a file name is used.
By Pawan Nayar · from the LLOS AI Learning record
A developer must audit all code that creates file names.
This includes code that builds file names from parts. A simple search for exact text will not find all places where a file name is used.
A developer often renames files. This means changing the file name in the code. A simple search for the old file name might miss some uses. Some code builds file names using variables. This is called a dynamic construction. The developer must find these dynamic constructions. The developer must also update the variables that create the file names.
A developer renames a file from `ch01_c01_band.json` to `chapter01_section01_band.json`. The developer searches for `ch01_c01_`. This finds some uses. But another part of the code builds the file name like this: `${chapterCode}_c01_${bandName}_band.json`. The `chapterCode` variable still holds `ch01`. The website then shows an error because it cannot find the file. The developer must change the value of `chapterCode` to `chapter01`.
Resolved from this lesson's own record — real definitions, not invented for this page.
More from the same record, pulled by shared topic — not written new for this page.
A developer must look for direct text changes. A developer must also look for code that creates file names or paths from parts.
A developer must check all existing rules that might conflict with a new rule. This is true when the goal is to make many files consistent.
Before a developer makes the first edit in any work session, a backup copy of the file must be made. The backup file name should include the date.
An AI model must show full file paths after every major update. A major update is any change that modifies one or more files.
A developer must audit all code that creates file names. This includes code that builds file names from parts. A simple search for exact text will not find all places where a file name is used.