3 ms·
What happens when a VP of Engineering decides that Cyclomatic complexity will be capped at 10: http://stackoverflow.com/questions/105852/conditional-logging-wi
by gtani 16y ago
What happens when a VP of Engineering decides that Cyclomatic complexity will be capped at 10:
http://stackoverflow.com/questions/105852/conditional-logging-with-minimal-cyclomatic-complexity http://stackoverflow.com/questions/105852/conditional-loggin...
- KirinDave 16y agoIt seems pointless to mandate it, but I don't think it'd really cause a problem for most real-world clojure programs. For one, cyclomatic complexicty measures independent paths, and I don't think that's what most people are complaining about when they say "lisp has too many parenthesis". They're complaining about how the structures expected require a lot of (sometimes arduous-seeming) complexity. Indeed, I suspect that the cyclomatic complexity of an average lisp function will be less than that of, say, the average Python function. It'd be the same with any functional language; they encourage you to only have one or two conditionals per function.