18 ms·
Some caution around yegor's list. One of the criteria is "avoid -er anti-pattern", which links to http://www.yegor256.com/2015/03/09/objects-end-with-er.html ht
by pacala 10y ago
Some caution around yegor's list. One of the criteria is "avoid -er anti-pattern", which links to http://www.yegor256.com/2015/03/09/objects-end-with-er.html http://www.yegor256.com/2015/03/09/objects-end-with-er.html. I'll just quote a little gem:
> Let's get back to class names. When you add the "-er" suffix to your class name, you're immediately turning it into a dumb imperative executor of your will. You do not allow it to think and improvise. You expect it to do exactly what you want — sort, manage, control, print, write, combine, concatenate, etc.
For the curious, the conundrum can be trivially solved via ```apples.min```, or perhaps ```Collections.min(apples)``` in a noun-biased language.