Ideas from books, articles & podcasts.
Funcational Programming is a declarative way of programming.
MORE IDEAS FROM THE SAME ARTICLE
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
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.
MORE LIKE THIS
“People, Process, Product”
published 11 ideas
Serverless functions save developers a ton of trouble managing the backend infrastructure. It also simplifies the development process as developers only need to focus on the business logic. This article is a step-by-step guide on how to write and deploy your own WebAssembly serverless functions o...
published 7 ideas
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.
❤️ Brainstash Inc.