The Artima Developer Community
Sponsored Link

.NET Buzz Forum
My Cyclomatic Complexity Thresholds

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
Raymond Lewallen

Posts: 312
Nickname: rlewallen
Registered: Apr, 2005

Raymond Lewallen is a .Net developer and Sql Server DBA
My Cyclomatic Complexity Thresholds Posted: Jun 13, 2005 9:34 AM
Reply to this message Reply

This post originated from an RSS feed registered with .NET Buzz by Raymond Lewallen.
Original Post: My Cyclomatic Complexity Thresholds
Feed Title: Raymond Lewallen
Feed URL: /error.htm?aspxerrorpath=/blogs/raymond.lewallen/rss.aspx
Feed Description: Patterns and Practices, OOP, .Net and Sql
Latest .NET Buzz Posts
Latest .NET Buzz Posts by Raymond Lewallen
Latest Posts From Raymond Lewallen

Advertisement

When anaylizing some cyclomatic complexity (measures the number of linearly-independent paths through a program module), I was thinking to myself about where I want my thresholds to be.  Where to I say “this is simple enough” or “I definately need to refactor this”.

So here is my conclusion:

  • 1–10  Simple enough.  Don’t change.  Little risk involved.
  • 11–20  Should consider refactoring.  Moderate risk involved.
  • 21–40  Definate refactoring needed here.  Risk is too high.
  • > 41  What was I thinking?  Throw this away and start over.

I won’t find anything in the greater than 41 range, but if I were to find anything, I’d definately throw it away.

Read: My Cyclomatic Complexity Thresholds

Topic: MicroISV: Deciding on a product Previous Topic   Next Topic Topic: TechEd: Day 5

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use