Hacker Newsnew | past | comments | ask | show | jobs | submitlogin
Ask HN: Looking for a talk on naming things
4 points by ArloL on June 18, 2015 | hide | past | favorite | 1 comment
I remember seeing a talk by a man online that covered naming things. One of the points he made was that prefixing a method with get for accessing a property is actually weird. I don't remember the exact arguments he made, which is why I'm looking for it. An example was that get could mean > to go after, take hold of, and bring (something) for one's own or for another's purposes; fetch which then makes no sense for a property because you're not fetching it in the sense that it's not at the other place after you fetched it. Compare it with getting the milk.


I'd suggest reading the book Clean Code, for some insight on how to write, well clean code ;)

Chapter 2 covers naming conventions

Also note that conventions are different for different languages.

You can also look up the Google style guides for Java, Python, etc...




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

Search: