Skip to content

Instantly share code, notes, and snippets.

@mrroot5
Last active May 18, 2019 17:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mrroot5/93d9aad26c4584c5f7d059ee09f52c32 to your computer and use it in GitHub Desktop.
Save mrroot5/93d9aad26c4584c5f7d059ee09f52c32 to your computer and use it in GitHub Desktop.
What is functional programming?

Explanation

Functional programming is a paradigm in which programs are built in a declarative manner using pure functions that avoid shared state and mutable data. Functions that always return the same value for the same input and don't produce side effects are the pillar of functional programming. Many programmers consider this to be the best approach to software development as it reduces bugs and cognitive load.

  • Cleaner, more concise development experience
  • Simple function composition
  • Features of JavaScript that enable functional programming (.map, .reduce etc.)
  • JavaScript is multi-paradigm programming language (Object-Oriented Programming and Functional Programming live in harmony)

Webography

Javascript and Functional Programming: An Introduction

Master the JavaScript Interview: What is Functional Programming?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment