2 ms·
I do support names as comments to a degree, but for math stuff, I'll often use shorter names. If you have a bit of math with a bunch of variables used in one li
by lnanek2 14y ago
I do support names as comments to a degree, but for math stuff, I'll often use shorter names. If you have a bit of math with a bunch of variables used in one line, with long descriptive names, it's going to take up multiple lines and be tough to read and understand.
I have a 10 line method for calculating distance from coordinates in one program for example, each line fits on one line and is pretty easy to understand because you can see all the operations. It would be 30 lines with longer variables names and tougher to read and understand, with some lines of code split across multiple.