From the course: Learning Functional Programming with JavaScript ES6+

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

The goal of functional programming

The goal of functional programming - JavaScript Tutorial

From the course: Learning Functional Programming with JavaScript ES6+

Start my 1-month free trial

The goal of functional programming

- [Instructor] So the big question most people ask when they hear about how useful functional programming is is, "What exactly is functional programming?" Well, to answer this question, it might be helpful to consider the question of why we would want to use functional programming in the first place. In other words, what are the problems that functional programming sets out to solve? Well, if you currently use an object-oriented programming language such as Java or C++ or especially a procedural programming language such as C, you've probably run into this problem before. There are certain bugs that are difficult to track down and fix, partly because they're hard to recreate, it takes a long, convoluted series of steps to make them show up, and partly because even when you figure out how to recreate them, it's next to impossible for you to keep track of all the changes that occur while the program is running. In a typical enterprise-sized program, thousands of variables are being…

Contents