3 ms·
Mutable internal state is problematic with or without inheritance.
by blindwatchmaker 8y ago
Mutable internal state is problematic with or without inheritance.
- maxxxxx 8y agoThere 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.
- mercer 8y agoConsidering 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.