5 ms·
Indeed. The problem with long var names is that formulas become unreadable and function names take away horizontal real estate for their args. There are so ma
by nuancebydefault 2y ago
Indeed.
The problem with long var names is that formulas become unreadable and function names take away horizontal real estate for their args.
There are so many ways out to make it shorter yet readable.
- idx is often used as index.
- An event handler can start with On.
- Simply take the first 3 or 4 letters of every word.
simpToReadVar
- keyISR Keyboard Interrupt Service Routine
- fName file name
- soonnow 2y agoI just want to point out you are saving 3 characters on the last one while making it a fair bit harder to understand. fileName is perfectly fine. fName could be firstName, fileName, finalName, foundName...
- nuancebydefault 2y agoYou are right!
- saulpw 2y agofn or fqpn should be well understood too given the context.