3 ms·
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 initi
by agumonkey 5y ago
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