News for hackers. Stuff that matters.
Re:The Power of Interoperability: Why Objects Are Inevitable... by agumonkey on Tuesday June 01, 2021 @04:26PM (#27360822)
objective points i hated about OOP ala Java:

- mutability is always there, you're never sure something in the object graph will bite you back

- no clear initialization, object can be "constructed" but you never know what state you get in the end, you need to read every class implicit protocol to be sure you called the right methods after `new` (FP asks for near in-order static trees.. less cute but quite obvious about dependencies). that is unless people played fully with generics and classes (phantom types to express what step you're in the object state graph)

- too much bike shedding about private / public fields

- single dispatch forcing someone to own some logic when there's zero logical reason to do so

There are no comments on this comment yet.