I’m reading some books about coding standard in Java.
I always loved beautiful and clean code.
But there are some things that bother me. For example, a method name should start with a lowercase word, and if it has a second word, it should be start with a uppercase character. But the standard for variables is the same thing. I think this is a little confusing.
So I’m asking you guys, what’s your coding standard in Java?
Like:
- How do you name objects, methods, classes, etc.
- If you have more than one object from same class, how do you name the second one?
- If you have one object in the argument of a method and you have another object from the same class inside this method, how you do name both of them?
- What is the best trade-off for performance/code beauty, a lot of small methods, or some longer methods?
- Feel free to say something more. =)
this.theVariable = theVariable