The Artima Developer Community
Sponsored Link

.NET Buzz Forum
Maintenance Complexity leads to more methods?

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
Jonathan Cogley

Posts: 56
Nickname: thycotic
Registered: Dec, 2004

Jonathan Cogley is the founder of Thycotic Software Ltd, a C# MVP and TDD evangelist.
Maintenance Complexity leads to more methods? Posted: Mar 11, 2005 4:01 PM
Reply to this message Reply

This post originated from an RSS feed registered with .NET Buzz by Jonathan Cogley.
Original Post: Maintenance Complexity leads to more methods?
Feed Title: Jonathan Cogley's Blog
Feed URL: http://www.asp.net/err404.htm?aspxerrorpath=/jcogley/Rss.aspx
Feed Description: C#, Test Driven Development, Remote Scripting, CShark! :)
Latest .NET Buzz Posts
Latest .NET Buzz Posts by Jonathan Cogley
Latest Posts From Jonathan Cogley's Blog

Advertisement

Mark Miller talks about a new metric he is calling Maintenance Complexity.  The system assigns operators and constructs a point score representing their contributing complexity.  A method is then analyzed and all the points add up to yield the Maintenance Complexity score.  I like the concept but tackling a report of complex methods would probably just result in breaking them apart into more methods.  Many might argue that this is a Good Thing although it really depends on how the methods are split.

This would seem to be completely against Kent Beck's Rule 4 for achieving the SimplestCode - "Minimizes number of classes and methods".

It also seems that determining the complexity of a method should also take into account the parameters to the method especially if any of the parameters are out since that could indicate greater coupling and more possible side effects of the code in general.

Automated tools and reports provide a great way to home in on problems area in code (Just look at the marvels a coverage report can do for statement coverage!) - but once you find the problem areas ... how do you fix them?  How does the tool/metric naturally select for simpler logic and less complexity?

Mark - Thanks for your thoughts and ideas!

Read: Maintenance Complexity leads to more methods?

Topic: Web-based community sites... Previous Topic   Next Topic Topic: Natty Gur on Enterprise Architecture

Sponsored Links



Google
  Web Artima.com   

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