Last Updated: February 25, 2016
·
355
· creativeaura

Reducing the Complexity of a Function

Try to reduce the complexity of a function or method and break it down to smaller pure function. This way you can debug your code easily and other developers in your team will understand your code better.

Here is a very useful screencast from Rebecca Murphey on converting your complex function to small pure functions.

http://training.bocoup.com/screencasts/reducing-complexity-function/