|
|
|
|
|
by nepeckman
2898 days ago
|
|
Where functional programming really shines is in large, complicated codebases. Pure functions helps you reason about code and the way different pieces of code interact. This is probably controversial, but I think that for scripts/small applications, imperative programming is probably easier. If the scope is small enough that I can keep track of the state in my head, the primary benefit of functional programming is not as useful. And if you're dealing with a simple problem, its probably an easy mapping from problem domain to imperative program. Though again, this is a pretty small set of programs. Anything large needs to handle state, and pure functions is a great way to do that. |
|