We have no idea what those numbers and variables mean in the bigger picture of the codebase.
It's a mystery. It's magic to everyone apart from the developer who wrote the code.
We can't possibly make any contributions to this code; we're stuck.
But what if our dev had looked beyond code that merely works and also focused on communicating the full story of the code?
At the very least they would have given those variables far more descriptive names to explain the context:
0 Komentar untuk "Never use magic numbers in your code: Do this instead"