Integrating OOP with Functional Programming in Effect TypeScript

Hey 👋 been doing a deep dive into Effect the last few weeks. One question I have is around Object Oriented Programming - we're currently using a lot of OOP patterns on our typescript backend. I know OOP and FP are not a dichotomy, but I wonder if people have found any helpful patterns to marry the 2 concepts, or if that is considered an anti-pattern or superfluous? Things I'm interested in are for example dependency injection into a class, having methods of a class return Effects, and more 🙂

Thx 🫡
Was this page helpful?