-
Verb’s the Word! Java method names
In Java, methods are typically actions we want taken, so method names are typically either verbs or verb phrases. Unit test method names can carry a slightly different format than runtime method names.
-
Adjectives, Describing State! Boolean Java Variable Names
For boolean variable names, which may store state, we need a little flexibility from the general noun or noun phrase rule in the prior post.
-
Nouns Abound! Java Parameter And Variable Names
Good Java input parameter and variable names can help us understand the code more quickly. A few coding conventions also help us understand how a field is used (whether a constant or a variable) by the name’s formatting.
-
Hands Off My Property! Getters and Setters
Getters and Setters are simple methods, but having them can protect your code in case you need to add validations or additional updates in the future. Using a common naming convention helps others find the getters and setters quickly.