by simion314 · 3y ago · 0 comments
e^pii = -1
or
theNatural....Constant... = theCircleConstant...
theSqureRootOfMinusOne = minusOnor maybe you replace One with theNeutralElementForMultiplication
but maybe someone is too lazy and you need to give a good clear name for what multiplication is,
Sorry, but I could not help it, I seen this kind of comments multiple time, some people want to jump to the middle or end of a book/course and skip the hard work.
From what I have seen, they should likely be putting their code into ChatGPT and asking it to clean it up because it does a better job of writing functions with properly named variables.
Some dude will say that "i" is also used as the vector for the horizontal axis, i is sometimes used in induction as iterator too, so clearly it should be refactored to sqrtOfMinusOne. Also + and * are overloaded in math, so maybe they should be replaced with a clear name like "realNumberAdition"
(I know these are examples and not what you personally would actually name them, but ugh what a visceral reaction. :P )
but the argument was that what if a random say train driver looks at my code, he will not know what E could be.