What Is Functional Programming - Deepstash

Bite‑sized knowledge

to upgrade

your career

Ideas from books, articles & podcasts.

What Is Functional Programming

What Is Functional Programming

Funcational Programming is a declarative way of programming.

4

STASHED IN:

7

MORE IDEAS FROM THE SAME ARTICLE

Recursion is when a function calls itself and an end condition exists in the function to stop the method call. We could talk about this in depth another day. For now, here is a good explanation.

If a function returns same value for the same argument every time, then the function is pure. That generally means that, the function cannot use any state values that could potentially change.

This is a method where we take simple functions and combine them into a more complex function. Let's say we have two methods f(x) = x * 2 //(timesTwo) and f(x) = x - 1 // (minusOne) . And we want to compute f(x) = 2x -1 . You call the timesTwo f...

Remember how we assign different values to a variable through out the program? How we use setters in classes to modify the value of class variables? That is not allowed in FP. A variable once set remains unchanged. Sort of like, making all variables final.We usually think of variable...

In OOP we treat data and functions separately. In FP, they are all the same. We can create an array of functions, pass a function as argument, return a function from a method.

Let's say there is a function that takes three arguments. Usually, we need to be aware of all three values to call this function, right? In partial application, the three arguments are provided at different times. I could not find a decent blog that explains this well.

Discover and save more ideas by creating a

FREE

Deepstash account.

Develop a

reading habit

, save

time

and create an amazing

knowledge library

.

GET THE APP:

MORE LIKE THIS

Marcus Lemonis

“People, Process, Product”

4

STASHED IN:

43

  • Built-in fast webserver
  • Production-ready
  • Highly scalable
  • ASGI compliant
  • Simple and intuitive API design
  • By the community, for the community

STASHED IN:

2

published 3 ideas

Goal: To provide a simple way to get up and running a high-performance HTTP server that is easy to build, expand, and ultimately to scale.

0 Comments