Someone on quora asked:
What is the general size limit of a method or variable name?
The idea is to keep them as short as possible. If I had a variable name of say 20 characters, Iβd already be raising eyebrows at that and looking for ways to trim it.
If you find that your variable or method names are generally too long, you may be violating the Single responsibility principle
If you enjoyed my content for some reason, I'd love to hear from you! Here are some options:
- You can buy me a coffee!
- You can write a reply on your own site and submit the URL as a webmention via the form below.
- Or you can just contact me!