2 ms·
Object.observe in itself was a declaration that the web community at large is not ready for serious software development yet. Any seasoned developer would see
by andrewmcwatters 11y ago
Object.observe in itself was a declaration that the web community at large is not ready for serious software development yet.
Any seasoned developer would see the ignorance in implementing such a feature.
- angersock 11y agoI used to work on a legacy Java codebase that made heavy (mis)use of the Observable pattern, and I must second your sentiment. Invariably a system acquires enough stuff going on that you get "observer storms" of feedback, or people find really weird couplings that are not immediately obvious because something several modules away is observing something it doesn't need to.
- acbabis 11y agoIn order to observe an Observable object, you need to have a reference to it. Adding an Observer to something that you shouldn't isn't possible without introducing it as a dependency. If someone does inject something so they can observe it, it's easier to spot the coupling. It sounds like the legacy code you got stuck maintaining put logic inside the observers, which isn't the Observer Pattern's fault. In my own experience, not using event patterns like the Observer Pattern is probably the biggest cause of difficult-to-maintain code.
- i38608 11y agoHow dare they use a feature that is not significantly different from using a setter for every property! These young people ought to know better.
- andrewmcwatters 11y agoI'd hate to be the one reviewing your code. I'm probably younger than you, too.