Comment by XCSme
17 hours ago
No, the problem is not the code.
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.
No comments yet
Contribute on Hacker News ↗