3 ms·
That's fine for German, but in source code I don't want any variable called LegalProtectionInsuranceCompanies. It takes up too much brain space for me to parse
by saulpw 2y ago
That's fine for German, but in source code I don't want any variable called LegalProtectionInsuranceCompanies. It takes up too much brain space for me to parse and understand each time. Much rather it was called "lpic" with a comment expanding it at time of definition.
Class names are a separate discussion.
- nuancebydefault 2y agoIndeed. 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.