A nice little reminder that clarity is not the same as verbosity. Also has some concrete tips for removing unnecessary verbosity in names, complete with examples. Though in some contexts, I might prefer a name like employeeToRole
for a Map<Employee, Role>
over the article’s employeeRoles
.
I have settled into this pattern:
Long names stay unnecessarily long when we don’t notice the patterns that suggest the missing structures.
The more examples of this kind of thing, the better!
(And my preferred name for that is
rolesByEmployee
. In general, “values by key”.)