Functional Programming vs Imperative Programming
Understand the changing programming paradigm and how it has led to functional programming.
A programming paradigm consists of the rules and design principles for building software. Paradigm changes mean that something in current software development strategies isn’t meeting modern demands. For example, we may have multiple tasks and huge amounts of data need to be processed quickly and reliably. The CPU isn’t getting faster—we can’t just write code and hope it will be faster with a new CPU launch. Instead, we have multiple cores or even machines to process stuff. We need to write code that takes advantage of concurrency and parallelism. Unfortunately, it’s hard to get it right ...