I worked with a developer who insisted on using the shortest names possible. God I hated debugging his code.
I’m talking variable names like AAxynj. Everything looking like matrix math.
At a previous job I had to work with an old database where all the tables and columns had 6-character names
I vomit whenever I have to read one letter alias SQL. And then… I dealias it.
I don’t understand why people think that it’s acceptable.
As developers, we’ve had it drummed into us from day one that variable names are important and shouldn’t be one or two letters.
Yet developers deliberately alias an easy to read table name such as “customer” into “c” because that’s the first letter of the table. I’m sure that it’s more work to do that with auto completion meaning that you don’t even need to type out “customer”.
Ah, must’ve been a fortran developer. I swear they have this ability to make the shortest yet the least memorable variable names. E.g. was the variable called APFLWS or APFLWD? Impossible to remember without going back and forth to recheck the definition. Autocomplete won’t help you because both variables exist.
He did write some Fortran in his past! What made you think it was Fortran influence?
shortest names possible
This film from 1975 is still relevant today: https://www.youtube.com/watch?v=7hdJQkn8rtA
You should really be naming all your variables by generating 64 character (minimum) random strings.
Make it 63 (31?) to align with what C99 can distinguish.
Also: I really like unicode in identifiers. So if at all possible don’t just have a random string of letters and numbers, make sure to include greek letters and all the funny emojis. (I just forgot which languages and compilers etc allow that.)
Wingdings is a font and has no effect on the actual code. Only people who set their IDE font to wingdings will see wingdings
Nah, I name all my variables after my homies.
int dave = 0;
Just be careful naming your function “stdout()” or things could get weird…
FullSentenceExplainingExactlyWhatItDoes(GiveThisVariable, SoItCanWork)