/ categories / Technology / @ProgrammingTip / post #575
14.03K

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


17:05 13.10.19
@ProgrammingTip
38.05K +46

Fun & Useful Programming : Tips 💡 Articles 📕 Resources 👾 Design Patterns 💎 Software Principles ✅ Ads & Contact : @MoienTajik