3 ms·
Anyone who is interested in these algorithms know what these single letters mean. This is very readable.
by coliveira 5y ago
Anyone who is interested in these algorithms know what these single letters mean. This is very readable.
- drran 5y agoNo, it's not. Readability assumes that code is easy to read and easy to understand. This code is easy to read for those, who understood the algorithm already, but is hard to read for those who has no understanding. It's the famous "write-only" problem of the Perl language, which uses symbols heavily too.
- patrick451 5y agoCode that mirrors a paper is the easiest to understand. Verbose, "descriptive" variable names just put more friction between you and the math. You are unlikely to reverse engineer the algorithm from the code unless you were already in a position to understand the terse mathy code to begin with. Just go read the danged paper.
- TheTrotters 5y agoI disagree. Virtually no one who worked even a little with these algorithms has used math symbols in their code. For better or for worse it messes up people's pattern recognition.