Friday 27 July 2012

What is cyclomatic complexity and why is it important?

Purpose:
  • This question tests whether a developer has ever delved into code optimization and whether they use coding metrics and tools to identify code smells and inefficiencies.
  • An ambivalence to metrics could indicate an indifference towards their craft and show a lack of passion. 

Potential Answer:
It is a metric that is used in software to measure computation complexity. Measures the number of linearly independent paths through which a program can go and the number of closed loops that it logically can form. It is important since the higher the dependency the less maintainable the code is.

No comments:

Post a Comment