Closed SorenKlemmensen closed 1 year ago
I forgot to say that this has been touched on in https://alguidelines.dev/docs/bestpractices/named-invocations/ however I think it is a bigger issue better covered by "No Magic Numbers" in general.
I moved this to ideas where I should have created it in the first place... Beginner error :-)
Too often I see people that assign meaning to random numbers. We see this standard if people refer to objects by number or options by the integer value, however it happens to when importing file formats outside our control or people try to sort stuff with more. The rule should be "No Magic Numbers". Use meaning full abstractions that make the code readable instead. Magic Numbers obscured the intent for the reader.
Please discuss