Last Updated: February 25, 2016
·
519
· 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/

Have a fresh tip? Share with Coderwall community!

Post
Post a tip
Related Tags
#javascript
Did you know?

JavaScript on a page runs with the privileges of that origin. One altered library, tag manager, or snippet can read inputs, change what people see, and call your APIs as the user.

Security insights from Cside