is it necessary to use Microsoft approach in every class for finding software maintainability?

For finding software maintainability by using Microsoft approach, where normally we have to use following method

MI = MAX(0, (171 — 5.2 * ln(HV) — 0.23 * CC — 16.2 * ln(LoC)) * 100 / 171),

Where,

HV – Halstead Volume,

CC – Cyclomatic Complexity;

LoC – lines of code.

In my program i have few different type of classes .as example For "finding area "__problem i have ----"circle", "triangle","quadrilateral", "abstract","choice" classes .

do i have to use the approach for every individual class for finding software maintainability ?

Answers


The simples answer is no. This is only a heuristic formula created to assess code and drive code refactoring in order to achieving good maintainability. You can find many other interesting heuristics if you look for code smells (aka anti-patterns).

In the real world, you face challenges, like resource constraints (e.g. time, legacy, design options), which usually leads to decisions that create technical debt. So, do not worry so much about strictly following these formulas. They are guidelines to help in making good decisions while designing your software architecture.


Need Your Help

why does mysqli fetch create an infinite loop when in function?

php function mysqli

Why does this function return an infinite loop? I am trying to create a function where you just have to give it the query and the while loop takes care of the rest. but for some reason ONLY when i ...

Should I connect to QNetworkReply::error() as well?

c++ qt qtnetwork

I have created a POST request and I connect to the finished() signal:

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.