3 ms·
Because they're not old enough to remember what '80s GUI code looked like when the "Global god object + functions" pattern was last popular? That's a snarky re
by pavlov 9y ago
Because they're not old enough to remember what '80s GUI code looked like when the "Global god object + functions" pattern was last popular?
That's a snarky reply, but there is a kernel of truth. OO was practically invented for GUIs (Smalltalk). Throwing it out entirely on principle just makes large programs harder to understand, IMHO.
- simon83 9y agoTrue, I'm not old enough with my 33 years to remember that ;) But I do have quite a few years of experience in OOP and GUI programming (not just web stuff).
- pikzen 9y ago>Because they're not old enough to remember what '80s GUI code looked like when the "Global god object + functions" pattern was last popular? Funnily enough, React + Redux is "Global god state + functions", with a bit of dispatch sprinkled in. Not too far away really. I definitely see the benefits of having a functional approach to defining UIs. My code is _somewhat_ clear, clearer than what it would have been with say, WinForms or something of the like. Going purely functional everywhere is just devs cargo culting.