by XCSme · 2mo ago · 0 comments
Is that that variable might be used in tests, UI, docs, agenr markdown files, other related projects too.
The design spec could say "always use 10px margin", then in code we have a const with value 10 used everywhere. If we update 10 manually in code to 20, then the design spec is now outdated.
You can't have it both ways. "The AI always does it right" and "I can't keep track of all the places where the change must be made, but the AI can" are incompatible and contradictory ideas. If you can't keep track of all the places that need to be changed, you can't check that the AI did it right.