Hacker News new | past | comments | ask | show | jobs | submit login

There is actual evidence to back up his original statement, and even to say that nesting increases defects. It's called cyclomatic complexity, and can be tested for quite easily.

http://en.wikipedia.org/wiki/Cyclomatic_complexity

I wrote an article on a similar concept here:

http://www.jasonlotito.com/programming/blocks/

It covers one method I use to reduce the complexity of my functions.




Consider applying for YC's Spring batch! Applications are open till Feb 11.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: