DEV Community

Discussion on: Write Better Code With [Functional Programming & Elixir]

Collapse
 
andreidascalu profile image
Andrei Dascalu

Well, thing is OOP by its 4 pillars nudges you towards shooting yourself in the foot in the long run. All the attempts to fix the paradigm are actually borrowing from FP.

Ever since I dove into DDD and saw its reliance on immutability I've been failing to see any inherent merit of OOP (aside from having become historically dominant for a long time, mostly due to functional paradigms being fairly compute inneficient)