News for hackers. Stuff that matters.
Re:The controller pattern is awful (and other OO heresy) by AtlasBarfed on Monday July 10, 2023 @06:36PM (#36673964)
Most oop was designed in the context of desktop gui apps, which are much more complex that web apps imo.

Is-a vs has-a is a lot more clear in context of widgets and windows. It still isn't perfect, most popular gii used inheritance whereas composition would probably be better.

Inheritance ended up as a core component of oop principles when ultimately it is a flawed approach compared to more flexible composition methods.

Liskov substitution was a massive success, classes were an improvement over structs, private vs public was generally a good idea even if the astro architects went nuts with it.

There are no comments on this comment yet.