Settings

Theme

Ask HN: Looking for a talk on naming things

4 points by ArloL 11 years ago · 1 comment · 1 min read


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.

gt565k 11 years ago

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

Keyboard Shortcuts

j
Next item
k
Previous item
o / Enter
Open selected item
?
Show this help
Esc
Close modal / clear selection