In Java's property name, which name is more correct ?
Please tell me a better expression, because, I'm Japanese.
Definition: Identifies the property name that is displayed on the Property List; an easily recognizable or descriptive name; typically a street address or property name (e.g. “100 Main Street” or “Commerce Center Mall').
Class names should be nouns, in mixed cases with the first letter of each internal word capitalized. Interfaces names should also be capitalized just like class names. Use whole words and must avoid acronyms and abbreviations.
Naming Conventions Package names are written in all lower case to avoid conflict with the names of classes or interfaces. Companies use their reversed Internet domain name to begin their package names—for example, com. example. mypackage for a package named mypackage created by a programmer at example.com .
Methods should be verbs, in mixed case with the first letter lowercase, with the first letter of each internal word capitalized. Except for variables, all instance, class, and class constants are in mixed case with a lowercase first letter. Internal words start with capital letters.
Although English is not my mother tongue too I believe that creationDate is better because it means that this is the date when something was created.
createDate
is irrelevant because it is command: Hey, man, create date!
createdDate
is speaking about the date itself and not about the date when something else was created.
I hope it helps.
I would personally go for creationDate
if it's a property name. If it's a method which creates a date, createDate
would be more appropriate.
just 'created', it's visible it's date from the type
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With