The Benefits of Functional Programming
Learn about the benefits of functional programming.
We'll cover the following
Cognitive load-reducing ability
Functional programming reduces the cognitive burden of writing code. Composing pure functions limits the mental effort required to perform tasks.
The human brain has a variable, but small number of shared memory resources for discrete working that we refer to as memory quanta. Working memory, the short-term memory optimized for temporary storage, is a limited resource. Each variable written in a computer program occupies at least one quantum of that limited memory.
Example
The snippet below contains three variables declared and evaluated by the PHP interpreter.
Create a free account to view this lesson.
By signing up, you agree to Educative's Terms of Service and Privacy Policy