News for hackers. Stuff that matters.
Re:Single Writer Principle (2011) by gens on Monday May 11, 2020 @07:57PM (#23148911)
Checking out what Alan Kay has to say about it might help: https://www.youtube.com/watch?v=fhOHn9TClXY

The way i see it OOP is about encapsulating/bundling data and the code that processes that data into one "object", that is isolated from other objects. The objects could only "communicate" with other objects by sending "messages" (data/events/something).

Personally i don't like OOP, and think that focusing on data and how it's processed is a better way forward (CSP and such). It's.. a complicated matter.

There are no comments on this comment yet.