This document discusses code metrics and why they are important. It defines various code metrics like length, vocabulary, difficulty, volume, effort, bugs, structuredness, complexity, and maintainability. It discusses pioneers in code metrics like Thomas McCabe and Maurice Halstead. It provides examples of calculating Halstead metrics like length, vocabulary, difficulty, volume, effort, and bugs for sample code. It also discusses metrics like cyclomatic complexity, class coupling, depth of inheritance, and maintainability index. Finally, it mentions that metrics can be measured at the method, class, package and system levels.
Related topics: