Functional Programming is the process of building software by composing pure functions, avoiding shared state, mutable data, and side-effects. In more simple jargon, functional programming is when you can pass functions as parameters to other functions and also return them as values. Functional code tends to be more precise, readily testable and easy to predict.
Who else loves to write side-effects-free functions? I think we, as programmers, all do. Today, in this story, I will walk you through the basic principles of functional programming that will make your coding life easier.
Formatting code consistently is a pain, especially when working on a team. The beauty of modern-day web development is that the tooling has gotten so much better! In this article, we will look at setting up Prettier to automatically format your code in Visual Studio Code.