But it's especially the inconsistent use of camelcase in function names than makes me think it's pretty amateurish.
But it's especially the inconsistent use of camelcase in function names than makes me think it's pretty amateurish.
You can have the exact same code wihtout abbreviations, and I can assure you that it will still be 2-3 pages long, with very short functions.
In this system, 'rks' communicates something that 'ranks' does not: that this is a local variable denoting a collection, and that it is a collection of the things that 'rk' denotes one of. So actually it adds quite a bit to readability.
If I were going to edit that code to make it more readable, the one change I'd consider is using 'r' (or maybe 'n', because these are integers) instead of 'rk'. One can argue either way whether the k adds information or just noise.
Despite its size, this .js file has been modified throughout many many years probably by various authors.