I've heard of singletons as anti-patterns, but observer as anti-pattern is new to me. Would you mind elaborating?
Maybe he means Event Bus systems
You are right, I was thinking what I just write, and seems like I got it wrong. The observer I had in mind was the observer you can find in Magento for example (Magento 2 docs)
Event Bus is bad, Observer pattern is not.
I dont get why Event Bus is bad.
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
I've heard of singletons as anti-patterns, but observer as anti-pattern is new to me. Would you mind elaborating?
Maybe he means Event Bus systems
You are right, I was thinking what I just write, and seems like I got it wrong. The observer I had in mind was the observer you can find in Magento for example (Magento 2 docs)
Event Bus is bad,
Observer pattern is not.
I dont get why Event Bus is bad.