AI-powered
podcast player
Listen to all your favourite podcasts with AI-powered features
The Importance of Functional Programming
I think ultimately it forces you to duplicate a lot of code. Look at objects in another way. We solved this quote unquote solve this problem by using encapsulation. But now everything that manipulates that object has to be inside of that class. And so we didn't, and ironically, that was one of the things that object-oriented programming was supposed to help is eliminating code duplication. It's like, nope. Let me explain category theory too, and then it'll make sense.