2 ms·
Methods that actually do something should be verbs, but if it's just reading a property it should look like it's just reading a property. And having all the met
by lmm 12y ago
Methods that actually do something should be verbs, but if it's just reading a property it should look like it's just reading a property. And having all the methods on a class start with get* is a pain for autocompletion.
- mseebach 12y agoHmm. I guess you're right. I dislike Groovy in other areas so it's not a path I've gone deep down. Especially for private APIs i Java I have actually tended to default to public final members, without verbs.