Re:Case against OOP is understated, not overstated (2020)
by dwohnitmok on Thursday February 10, 2022 @09:32PM
(#30296127)
> to the example of a web browser I would say, most applications are not web browsers.
I should've clarified. I meant developing a web page to run on a web browser, hence the form example.
Re:Case against OOP is understated, not overstated (2020)
by jolux on Thursday February 10, 2022 @10:19PM
(#30296457)
It’s a good point. UI is a situation where the classic OOP-style frameworks work really well when they’re carefully designed. I think we’re still waiting on a model for doing that with FP that doesn’t rely on passing state deep down into an expression tree like React and its descendants encourage you to do. There’s stuff like Redux but it has its own problems.
I’m also very pragmatic and to the example of a web browser I would say, most applications are not web browsers. The overwhelming majority aren’t, in fact. I’ve chosen at this point in my career to mostly focus on enterprise software development, which I believe was Rich’s original field as well, and I’ve seen an enormous number of solutions with too much state cast about everywhere that benefit massively from centralizing the state high in the tree and really thinking through the data model carefully. So I stand by the principle I advocated originally, but it’s not universally applicable. It’s my belief that one of the core virtues of software development is knowing when to apply which principles.