Re:OOP Is Dead, Long Live OOP
by blindwatchmaker on Thursday October 18, 2018 @07:41PM
(#18253282)
Mutable internal state is problematic with or without inheritance.
[ Parent
| on HN ]
There are plenty of use cases where you need internal state. Think about UI in a desktop app for example. Not everything is a data pipeline with a clear in and out.
Considering the popularity of React/Redux, it does seem like avoiding internal, mutable state as much as possible and approaching as much of the rest as possible as a 'data pipeline' is a very valid way of dealing with UI's.