I find functional programming is good way to do this: if all I care about is the mapping from inputs to outputs (with no external and/or mutable state to worry about), I don't need as much in my head at once.
On the other hand trying to wrap my head around function composition and partial application of functions and/or higher-kinded types while being distracted is just as bad, if not worse.
View all comments
Show parent comment
2
u/aaron552 Mar 06 '18
I find functional programming is good way to do this: if all I care about is the mapping from inputs to outputs (with no external and/or mutable state to worry about), I don't need as much in my head at once.
On the other hand trying to wrap my head around function composition and partial application of functions and/or higher-kinded types while being distracted is just as bad, if not worse.