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

I’m not talking about capitalization, I’m talking descriptiveness, meaning, precision etc. You know, naming.

The idea that naming is about someMethod vs Some_Method is nuts to me. Just choose a thing and do it. Naming is about words and meaning. It’s hard, and it’s important.



I’m talking descriptiveness, meaning, precision

So was I. Maybe next time respond to my actual words, not your slimmed-down interpretation of them? Some teams are perfectly ok with single-letter local variables, some are not. Some teams are perfectly ok with single-letter parameter names, some are not. Some APIs I've worked on even specified the units in quantity parameters (e.g. HeightInMeter, WeightInMilligram), others would only specify that in the documentation (if you're lucky).

Naming is about words and meaning. It’s hard, and it’s important.

When working on a piece of throwaway pseudo-code, no it's not important.




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

Search: