Don't Create Objects That End With -ER ❌
Manager, Controller, Helper, Handler, Writer, Reader, Converter, Validator, Router, Dispatcher, Observer, Listener, Sorter, Encoder, Decoder. 🤯
This is the class names hall of shame. 🤷🏻♂️
Have you seen them in your code❔
In open source libraries you’re using❔
In pattern books❔
They are all wrong. ⚠️
What do they have in common❔
They all end in “-er.”
And what’s wrong with that ⁉️
They are not "classes", and the objects they instantiate are not objects. Instead, they are collections of procedures pretending to be classes. 🤦🏻♂️
[ Article ] : kutt.it/erobj
〰️〰️〰️〰️〰️〰️
#Objects #ObjectThinking
@ProgrammingTip