Functional Programming

I have been a devoted Angular (1.5) developer for a longer time. I always liked Angular, even if it was a quite messy framework to work with, as one could achieve the same end result with many different techniques within Angular. When Angular 2 finally arrived, I was enthusiastic to make the immediate transition from 1.5. to 2. But somehow, it never happened.

In the summer 2016, installing Angular 2.0 in a Visual Studio environment felt very cumbersome, plus the TypeScript and transpiling did not convince me. It was when I started to look like alternatives – e.g. React.

By coincidence, I ran into a project that was utilizing Functional Programming. I was not very familiar with the concept at first, and I heard some warnings from Front-End developers how difficult it could. be. But it wasn’t.

As a Full Stack developer, it was quite easy to get the hang of Functional Programming. If you want to grasp the idea fast and effective, I recommend you get familiar with Underscore firs (http://underscore.js), and do the basic introductions to functions such as each, map and reduce. Once you figure out what they are about, you are pretty much on a good path to learn Functional Programming.

Unaware of the buzzword myself, I had actually been using Underscore for some time. I just did not know that using it and adhering e.g. to immutability and stateless development, I was actually performing the basics of Functional Programming.

Some nice articles:
Getting started with Underscore and Lodash

 

 

Advertisements