Functional Programming
Comments discuss learning functional programming, its benefits over OOP, reasons for limited adoption, and recommendations for resources like essays and courses.
Activity Over Time
Top Contributors
Keywords
Sample Comments
Did you try reading Why Functional Programming Matters [1] ?[1] http://www.cs.kent.ac.uk/people/staff/dat/miranda/whyfp90.pd...
Learn functional programming, then apply those techniques to your language of choice.
The more I read about functional programming the more I question why are things this hard in traditional oops. If so many people have been doing oops for so many years then it must have something that is easy to pick up or something that is easier to work with. But after doing some functional programming the number of lines are painfully less and the code is easier to understand. I was thinking may be I was giving too much credit to FP but I was not it's simply just the way things are. But
Learning generalized concepts of FP just make a lot of sense IMO. Knowing that you can map all functors the same way wether it's an Optional, List, Future or Either is a useful tool to have. Using it in a language with syntactic sugar to compose map and flatMap (>>= in Haskell) operations helps to write clean code a lot. For me, solving problems in a functional way is not always as intuitive as the imperative approach but the end result is usually worth it. That said, FP can become a
Learning functional programming is arguably more about unlearning all the terrible hoops other languages make one jump through.
I share the exact same story. Progfun is a really smooth introdu tion to FP in my opinion, no crazy syntax and only the core concepts. For any deeper concepts and if you don't understand what FP really means you should check out a purely functional language.
And functional programming is simple?
Hated functional programming in university, now wish there was wider industry adoption. Deep diving into FP made me think more about the code, rather than just writing it in an OO-Language.
"Why isn't functional programming the norm" discusses your points. If you haven't seen it, it makes a great in-depth argument for why you're right :)
functional programming saves the world. learn that.