|
|
|
|
|
by jochung
3002 days ago
|
|
I have the exact opposite experience. If you find yourself annotating your variables and methods with extra adjectives and nouns, your code isn't simple enough. Those explanations go in code comments. Often it means you can refactor it so that there is only one of any "thing" so there is no need to clarify which version or role this "fooBarThing" is serving to disambiguate it from the other "bazBarThing". Functional composition and well structured data is the key to this. It's basically halfway to point-free style. |
|
Readable variable names doesn't mean wordy names. I would avoid using more than 2 words in a variable name.