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
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
Telegram
Programming Tips Resources