Hacker News new | past | comments | ask | show | jobs | submit login

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.



Hmm. 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.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: