For example x̄ (x-bar) is used in statistics to represent the sample mean of a distribution. It doesn't matter what your distribution is, you'd likely call it x̄.
Whenever you see an equation mentioning "n", this will very often be the number of items in a set/list/array, not matter what that set is counting.
Usually these equations are very general, and they don't care what "n" actually is, and this way it's easy to see where you should plug that number into. If you look at the equation for x̄ (averaging) then you'll see "n" in there, and you already know what it's for, and it's incredibly concise.
If you're familiar with them they actually are named relatively well, and generally they're references that you then implement, they aren't meant to be the implementation themselves.
In the end the symbols on the paper are just a way to guide the reader to his own understanding of the underlying mathematical truth.
I bet most of us do not even think about that. Rho is a density, n is a natural number, epsilon is small, delta a perturbation …
Not Java, but I have done productive brainstorming sessions where I handwrite Python or R onto paper, to figure out some kind of tricky problem or algorithm. Syntactically correct and indented too. It's not hard to handwrite code at all. Plus my "comments" can have arrows and diagrams and doodles and anything I like.
Not quill and ink, but I took several programming exams at uni, where we had to write the answers, including pages worth of Java code with pen on three-layer carbonless copy paper...
This was just 15 years ago.
e^pii = -1
or
theNatural....Constant... = theCircleConstant... theSqureRootOfMinusOne = minusOn
or 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.
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"
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.
(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.
This topic is complex. For a more thoughtful take, start with:
If mathematicians worked like software engineers they'd label things like "density[x, y]" instead of "\rho_{xy}" or at least stop using PDFs and use HTML with a tooltip over each variable name like we have in pretty much every modern editor, but we all know they hate readability.