Welcome to Dream.In.Code
Getting Help is Easy!

Join 86,399 Programmers. There are 1,474 online right now! Ask your question and get quick answers from Dream.In.Code experts. Join the #1 programming help community on the internet! Registration is fast and FREE... Join Now!

Chat LIVE With a Expert
Powered by LivePerson.com

Register to Make This Box Go Away!

Whats Maintenance and Cyclomatic Complexity Mean

 
Reply to this topicStart new topic

Whats Maintenance and Cyclomatic Complexity Mean

mustang50187
post 4 Mar, 2008 - 11:11 PM
Post #1


New D.I.C Head

*
Joined: 18 Jan, 2008
Posts: 21



I have a plug-in by CodeRush and shows a number at each code at the begining. If i click on it I can change it from Line Count, Maintenance and Cyclomatic Complexity. What I was wondering what the numbers stand for Maintenance and Cyclomatic Complexity. And if the higher the number the worst or higher the better so do you want a lower number. Thanks to any one that can help me clear up this pondering thought of mine.
User is offlineProfile CardPM
Go to the top of the page
+Quote Post


bhandari
post 5 Mar, 2008 - 01:07 AM
Post #2


D.I.C Addict

Group Icon
Joined: 31 Jan, 2008
Posts: 745

can u please attach a screenshot of what you are talking about??
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

mustang50187
post 5 Mar, 2008 - 01:28 AM
Post #3


New D.I.C Head

*
Joined: 18 Jan, 2008
Posts: 21

QUOTE(bhandari @ 5 Mar, 2008 - 01:07 AM) *

can u please attach a screenshot of what you are talking about??


You will see a menu at the little red 24 number thats the thing Im talking about. Thanks if you can help.

This post has been edited by mustang50187: 5 Mar, 2008 - 01:32 AM


Attached thumbnail(s)
Attached Image
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

runtime error
post 29 Mar, 2008 - 01:44 PM
Post #4


Lucky.Code

Group Icon
Joined: 19 Mar, 2001
Posts: 624

Cyclomatic Complexity and Maintenence complexity are both metrics to measure how hard your code is for other programmers and yourself to maintain.

Cyclomatic complexity has been around for a while and measures how many linearly independent paths are in a program, the less conditionals the less complex the program. With Cyclomatic Complexity the higher the number the more difficult your code is to maintain, so higher numbers are bad.

I found this great article on cylomatic complexity here:
http://www.linuxjournal.com/article/8035


Maintenance complexity is newer and some people are in disagreement with its methods. Higher numbers are also bad here as well. For more information on Maintenance complexity and how things are scored check out the creators blog:
http://www.doitwith.net/PermaLink.aspx?gui...5c-51e8b3d1d4ec

This post has been edited by runtime error: 29 Mar, 2008 - 02:47 PM
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

Fast ReplyReply to this topicStart new topic
Time is now: 5/17/08 06:16AM

Live Help!

Tutorials

Programming

Web Development

Reference Sheets

Code Snippets

Bye Bye Ads

Free DIC T-Shirt

T-Shirt Example

Related Sites

Monthly Drawing

Thumb Drive

Partners

Top Contributors

Top 10 Kudos This Month