Object Oriented Metric

Is there a metric that can help in defining an object-oriented system or application? I saw some pretty neat metrics in the .NET Reflector Add-ins codeplex project, but nothing like that yet. If such an indicator does not exist, perhaps it will be possible or useful? There are 3 alleged principles of object-oriented programming: encapsulation, inheritance, and polymorphism; a tool that evaluated programs against them could show areas of a C # database (or similar) where the entire object-oriented ideal was dropped, and perhaps the number of errors related to this area compared to the rest of the project.

+3
source share
2 answers

One significant interpretation of good OO design is that the objects in the project map are logically and sequentially processed by domain objects. Interpreting this requires a deep knowledge of the problem you are trying to solve, including the general context. Automated metrics are not yet complex enough to understand the context in this way.


In response to the comment, I thought I would expand a bit:

, , - OO ", ". , , . , , . , "" , . , ? , , , - ? ? , ? , , . , , .

+1

82 , NDepend .NET.

0

Source: https://habr.com/ru/post/1741565/


All Articles