TLDR
Pure functions are often hyped up in the Javascript world, probably because of the abundance of state in front end applications. Pure functions have their downsides, but they should be used as much as reasonably possible. Pure function has the following properties: When I call a pure function my program will be in the same state it was before calling it (other than time will pass and I will have assigned the result of the function) Pure functions keep applications simple. Simple applications tend to be faster, are easier to test and debug.via the TL;DR App
no story
Written by wagslane | Founder of Boot.dev.
Whining about coding sins since 2011. Committing coding sins for the same.