3 ms·
Isn't OOP supposed to be about bringing everyday human things as the paradigm for thinking? Stuff like doors, buttons, locks and keys, levers. There are some g
by alganet 2y ago
Isn't OOP supposed to be about bringing everyday human things as the paradigm for thinking? Stuff like doors, buttons, locks and keys, levers.
There are some good gems in the popular developer culture. "Circuit Breaker" is a de-facto name for an OOP pattern I enjoy. "Dependency Injection" not so much, could be called "Spare Parts Design".
Architectonic styles comes from Christopher Alexander stuff. It's a classic, patterns and GoF comes from that. We could use some of his later _Nature of Order_ stuff as well (the "Order" name I don't like that much though, but it's good content nonetheless).
I think this is the most cognitive (in what it does, not in what it says) we can get without being too geeky for beginners.
Minds to be "educated", maybe? Like we humans do. Small everyday stuff first, then more complicated human things later.
Anyway, about the "modular monolith": what about we just call it a "machine"? We already expect most machines to be modular, and the sum of its parts to do more than its individual components, and the idea that the components are designed and maintaned together.
- brazzy 2y ago> Isn't OOP supposed to be about bringing everyday human things as the paradigm for thinking? Not really. That's just the metaphors that are used for teaching. Really just for introducing the concept, if the teacher is any good. Because it's not very helpful for what developers actually do most of the time. If you want to believe Alan Kay, it's about "messaging, local retention and protection and hiding of state-process, and extreme late-binding of all things", and almost everyone's been doing it wrong since the 70s. Oh, and he actually "thought of objects being like biological cells". Personally, I'd say it's most importantly about encapsulating state with the code that operates on it.
- alganet 2y agoI think you missed my point entirely. I made my point in the first comment I made on this thread. Whatever it is, it is lacking something for human brains to grasp it. My point is that people are doing it wrong because the names don't help. It was called _Smalltalk_, wasn't it? Like a casual friendly conversation. These more technical descriptions are behind the theory of it, not what is actually supposed to look like when applied. I don't need to know that doors have hinges or the complex manufacturing of locks to call a door a door. When I open a lock, I don't need to call it a "mechanical system of pins and springs" or anything else.
- ahoka 2y agoCircuit Breaker is not an OOP pattern.
- alganet 2y agoOf course not. Circuit breakers come from electrical engineering. And façades comes from architecture. And mediators are from debate and diplomacy. And promises are things humans tell others regarding a future expectation. Or were you stating the fact that it's not a documented "official" pattern by a popular book author?