Re:The Case Against OOP Is Wildly Overstated
by Gibbon1 on Friday July 31, 2020 @04:32PM
(#24013640)
Yeah but you don't need OOP to do that. See opaque pointer's in a number of non OOP languages.
[ Parent
| on HN ]
Re:The Case Against OOP Is Wildly Overstated
by billisonline on Saturday August 01, 2020 @03:27PM
(#24023189)
You don't need OOP to do anything! But in the state machine example, it provides a coherent and readily understandable metaphor (object modifies its own private state; callers can tell it what to do but not how) for the task at hand. Isn't that the goal of a programming paradigm?
Re:The Case Against OOP Is Wildly Overstated
by augustk on Friday July 31, 2020 @05:07PM
(#24014108)
These are called Abstract Data Types.
Re:The Case Against OOP Is Wildly Overstated
by garethjrowlands on Saturday August 01, 2020 @09:40AM
(#24020355)
This paper describes the differences between objects and ADTs, https://www.cs.utexas.edu/users/wcook/papers/OOPvsADT/CookOO...