4 ms·
I agree and I think rules are pointless. Everything is a tool and you pick the right tool for the job and that requires context and thinking. However, having b
by wellpast 7y ago
I agree and I think rules are pointless. Everything is a tool and you pick the right tool for the job and that requires context and thinking.
However, having built systems in OO and then in functional, I've come to realize that the OO tools always have a surface of familiarity (`cat.meow()` vs `meow(cat)`) but are highly coupled (inflexible) while the latter, functional composition is not.
And if there's any objective measure to complexity it's a measure of degrees of coupling. And OO distinctly loses to functional there.
- mpweiher 7y agoHmm...I would say that cat.meow() has higher cohesion and lower coupling than meow(cat). Which is exactly what you want. Maybe a different example would better illustrate the point?