Saturday, July 1, 2017

Metrics in our project

Hey guys,

until now we were not able to count how many lines of code we have or how many methods are in our project. Ohter metrics like McCabe or Distance from the Main Sequence couldn't be calculated either.
We decided to use Metrics 1.3.6, an eclipse plugin, to show these numbers in our IDE. Have a look:

Metrics of Learningtriangle (last update 21.06.17)

As you can see, the Nested Block Depth is red, which means "not good".  After every method, the code is indented one more time, the number how often this happens is the Nested Block Depth. You shouldn't have a value this high, if you follow the Object Calisthenics the level of indentation is maximized to 1.
We tolerate this value because it happens in the learning algorithm, where beginners can't fix this value that easy. Also its only in this one method, so the impact isn't dangerous.
The other values aren't perfect, but ok.
 For more information, have a look in our SAD.

Have a nice day,
Marco from TheLearningTriangle-Team

1 comment:

  1. Hey Guys,
    Your metrics are fine, it's good to see that you keep them in mind. Maybe some code befor and after refactoring and how the metrics chanced would be nice.
    Kind regards, BestPlaces

    ReplyDelete