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/
Written by Gaurav Jassal
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Javascript
Authors
Related Tags
#javascript
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#