Comment by ahofmann

Comment by ahofmann 3 days ago

3 replies

But this works as intended? The code isn't cluttered with documentation, that doesn't necessarily makes sense when reading the code, but by reading the commit, one can understand why the code was written like that.

Dylan16807 3 days ago

Cluttered? A sentence describing a magic value is not clutter.

  • lintfordpickle 3 days ago

    I'm not necessarily disagreeing with you (because apparently this is missing), but a descriptive constant/variable name would be even less clutter than even a 1-line comment

    • thayne 3 days ago

      A variable name that explains both what this is, and why that specific value was chosen would be a very long and cumbersom name. And would beed to be changed if the value was ever changed (to explain the new value).