top | item 9737101

Ask HN: Looking for a talk on naming things

4 points| ArloL | 10 years ago | reply

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.

1 comment

order
[+] gt565k|10 years ago|reply
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...