News for hackers. Stuff that matters.
Re:The controller pattern is awful (and other OO heresy) by goatlover on Monday July 10, 2023 @12:24PM (#36668625)
And yet despite all these criticisms and complaints, C++, Java, Python, Javascript, PHP and even Ruby to some extent, have been massively popular and used to write all sorts of software we rely on.
Re:The controller pattern is awful (and other OO heresy) by namaria on Monday July 10, 2023 @04:04PM (#36672175)
What people are complaining about when they voice these sorts of concerns goes back to the concept of essential vs accidental complexity proposed by Fred Brooks. The issue is not that adding accidental, inessential complexity to software is somehow a sin. The problem is that someone will have to wrangle this extra complexity. Enterprises can just throw bodies at the problem, creating drudgery. The warning is against producing pointless, boring work.
Re:The controller pattern is awful (and other OO heresy) by patmorgan23 on Monday July 10, 2023 @04:20PM (#36672378)
All of those languages also have functional/procedural language features. You don't have to go crazy with Classes/Objects to program in them.
Re:The controller pattern is awful (and other OO heresy) by zeroimpl on Monday July 10, 2023 @08:06PM (#36674826)
Which is what’s great about these languages - best of both worlds.

I also think this discussion shouldn’t be about languages at all, you can have objects of some form in any imperative language including C. It’s more about what design patterns make sense for specific problems, and sometimes the answer is OO-style (eg with class hierarchies) and sometimes not.

Re:The controller pattern is awful (and other OO heresy) by 12345hn6789 on Monday July 10, 2023 @09:20PM (#36675333)
(nobody is talking about whether X pattern can be used successfully)