News for hackers. Stuff that matters.
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.
Re:OOP Is Dead, Long Live OOP by maxxxxx on Thursday October 18, 2018 @07:58PM (#18253363)
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.
Re:OOP Is Dead, Long Live OOP by mercer on Sunday October 21, 2018 @06:50AM (#18267464)
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.