Functional vs. Imperative
Published on
Published on
Functional programming is a programming paradigm that treats computation as the evaluation of mathematical functions and avoids changing-state and mutable data.
Imperative programming is a programming paradigm that uses statements that change a program's state.
In this post, we will explore the differences between these two paradigms and how they can be used together to create better software.
Using reduce
to calculate the total number of lines of code written by a team of developers (starting with 0
).