If you’re familiar with Object-Oriented-Programming and you’ve heard of Functional Programming (FP) but struggled to understand it or had difficulty seeing the benefits, this article is for you. In this article, I will discuss some core concepts of FP and how it is simply Function-Oriented-Programming (FOP).
Functions are everything in FP, and there are many different types of functions. In this article I will discuss three types of functions:
The english definition of pure is:
not mixed or adulterated with any other substance or material
Some synonyms for the word pure are:
If you’ve worked in a Node project before, you know all too well the pain of bumping the version of your package when making a change.
First of all, you have to remember to bump the version or else your CI/CD pipeline will fail to publish your changes. This includes running
npm version (major|minor|patch) or
yarn version --(major|minor|patch) .
Second of all, if you have successfully bumped the version but your colleague beats you to it and merges their PR first, you have to go and bump the version again.
This pain is multiplied if you’re working in a monorepo…