Created
July 5, 2016 15:21
-
-
Save tkfx/a646a6dc8d9fe170ea45a26807381f7e to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Bad. | |
| // - Field names give little insight into what fields are used for. | |
| class User { | |
| private final int a; | |
| private final String m; | |
| ... | |
| } | |
| // Good. | |
| class User { | |
| private final int ageInYears; | |
| private final String maidenName; | |
| ... | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment