Dissonance of Using Functional Concepts in Non-functional Stacks
bitbytebit.substack.com
Side-effect free functions (i.e., pure functions) lend themselves to easy unit testing. If the ability to test software is key to creating quality then it stands to reason that the more pure functions a piece of software has, all other things being equal, the higher its quality. Taking this idea a step further we may posit that to achieve high quality we must maximize the amount of pure functions in our codebase. Or at least maximize the amount of code that lives in pure functions.
Dissonance of Using Functional Concepts in Non-functional Stacks
Dissonance of Using Functional Concepts in…
Dissonance of Using Functional Concepts in Non-functional Stacks
Side-effect free functions (i.e., pure functions) lend themselves to easy unit testing. If the ability to test software is key to creating quality then it stands to reason that the more pure functions a piece of software has, all other things being equal, the higher its quality. Taking this idea a step further we may posit that to achieve high quality we must maximize the amount of pure functions in our codebase. Or at least maximize the amount of code that lives in pure functions.