Roy Tang

Programmer, engineer, scientist, critic, gamer, dreamer, and kid-at-heart.

Blog Notes Photos Links Archives About

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

Posted by under notes at #answers
Also on: quora / 0