Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

In small methods I tend to use shorter names, even very short non-descriptive names, because there is less context so less chance of confusion, and it makes it easier to see what's going on in a glimpse (and check it matches method name).

On the other hand, if some public method does multiple things that need to be known to decide where it can be called, I put them all in its name.



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

Search: