DEV Community

Mariusz
Mariusz

Posted on • Updated on

React Tldr; Functional Programming in JavaScript: How and Why

Functional Programming is a programming paradigm where you mostly construct and structure your code using functions.

Features:

  • First-class citizens functions: you can always insert functions inside a function without any restrictions present.
  • A higher-order function: a function that gets a function as an argument.
  • Function Composition: an act of composing/creating functions that allow you to further simplify and compress your functions by taking functions as an argument and return an output.

Benefits:

  • It doesn’t have side-effects and it’s immutable
  • It’s clean, straightforward and KISS

Source: https://blog.bitsrc.io/functional-programming-in-javascript-how-and-why-94e7a97343b

Top comments (2)

Collapse
 
dance2die profile image
Sung M. Kim

Hi Mariusz.

We encourage the entire article to be published on DEV.to (if you have proper rights), with a linkback if appropriate. Otherwise, we recommend original material, such as an original commentary on the article.

From the Terms of Use:

Users must make a good-faith effort to share content that is...not designed primarily for the purposes of promotion or creating backlinks. Additionally, posts must contain substantial content — they may not merely reference an external link that contains the full post.

Posts that are simply intended to encourage readers to view an external resource are discouraged.

Thank you.

Collapse
 
maniekm profile image
Mariusz

Hi Sung,

thanks a lot for info. Didn't have any idea, nor bad intentions.

I was actually missing some sort of tldr, as more and more content is made day by day, and it's harder to decide what's worth the attention.

Everyone then is welcome to join my FB group with React TLDR;

facebook.com/groups/2396587880554412/

Again, thanks for the reminder. Won't happen again.

Cheers!