3 ms·
This article is like a breath of fresh air. I see the syndrome he criticizes everywhere, and it drives me up the wall. Seven names where two are enough make mo
by ncmncm 7y ago
This article is like a breath of fresh air.
I see the syndrome he criticizes everywhere, and it drives me up the wall. Seven names where two are enough make more work for everybody. Noise words like "factory", "manager", "state", "handle", "object", "metadata" don't belong in interfaces. Clue: every single thing in your program is most of those things! The words take up space on the page and in your brain that could be used for something real. "Get" is the most abused. "GetThis", "GetThat". Clue: every value-returning function gets something! Just call it that thing. "Get" just adds clutter.
BTW, "is" and "has" prefixes on predicate functions are fine. Those read like English in conditionals.