Get the latest tech news
OOP is not that bad
er 9, 2024 - Tagged as: en. OOP is certainly not my favorite paradigm, but I think mainstream statically-typed OOP does a few things right that are very important for programming with many people, over long periods of time.
Even if the entire Haskell ecosystem decides to use one particular effect system, things like using two different handlers for different parts of the program, such as the example of using different logger in the db library and the main app, requires type juggling. Any new person who joins the project, or any one time contributor who just wants to fix a bug and move on, will be able to work on either one of the libraries or the application code. Mainstream statically-typed OOP allows straightforward backwards compatible evolution of types, while keeping them easy to compose.
Or read this on Hacker News