by Collent on 2/22/22, 2:00 PM with 3 comments
by henrydark on 2/22/22, 5:24 PM
Major points implied by minimizing cyclomatic complexity: 1. Don't use conditionals if you can do without them. 2. No raw loops.
These have slowly become common advice only in the last decade.
If you generalize cyclomatic complexity so that calling functions is a single point, then another major point is that code reuse minimizes global cyclomatic complexity, and how you do it matters.
Though this case is seldom made, if ever, cyclomatic complexity actually provides a robust framework for refactoring decisions.
by borovec31 on 2/22/22, 2:11 PM
by nephrenka on 2/22/22, 2:03 PM