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

Cyclomatic complexity is a good metric for local readability, but for considering the readability and ease of modification of whole programs or even for single files, it's far from good enough.

For an extreme example: you can turn all the methods of a complex program into one-liners, and all your classes into one-method classes. But doing that will definitely make your program harder to read.




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

Search: