I have dumped Object Oriented Programming and switched to Functional Programming in Javascript. Whew! I was the stupidest person in the room. Passing functions as values, took some time to grasp but it got more intuitive after two weeks. There is a connection to Unix pipes: ls -a | grep to Pipelining in Functional style, which is calling a number of functions in a sequence.
This negates the need to create resource intensive Objects. If I need 1 fork, I shouldn’t have to bring the kitchen sink. It’s a waste.
I am not a master at functional programming since javascript is partially functional. But I will never write a “loops” if I can use map, filter or reduce function ever again.
Functional style is far more relevant today than OPP. data. We are drowning in data. While OOP will be great for providing structure, we need Reactive Programming yesterday to help with streaming data, race conditions and asynchronous calls and more.
Everything has its time: It is Functional Programming Style’s time to shine. Let’s resist the bloat of OPP. Write smaller functions. Each one that does one thing well then choreographs them into a beautiful dance of modularity.
Functional coding will advance your coding skills. Even if you decide to remain in the land of OOP bloat, you will still improve your programming skills exponentially. I craft shorter function now. Easier to maintain and read.
Big shoutout to Machine Learning just in case it’s thinking I am cheating with functional programming on it too. I don’t have to, the function is written automatically for you by the model.
Twitter@roydell2b for more of my writings.
Functional ProgrammingJavaScript
Roydell Clarke
After studying computer science, I worked as a graphic designer and a web developer. Now, I am addicted to FP. Deep-learning, RX.js, Tensorflow, and IoT.
Yep, sounds like me, found FP and OO feels bloated and clumsy. Just started a series on FP for the OO dev :)
Have you started to delve into monads yet? Great tool
https://steemit.com/programming/@woz.software/functional-programming-for-the-oo-developer-intro