Home Developer Software metrics: a practical guide for the curious developer

Software metrics: a practical guide for the curious developer

Author

Date

Category

TL;DR: We’ve released an ebook, free to download for all: Software Metrics: A Practical Guide for the Curious Developer. It’s for developers in a hurry — or their managers — who want a practical list of useful software metrics and to get work done.

If debugging is the process of removing software bugs, then programming must be the process of putting them in.

Edsger Dijkstra

Background on Software Metrics

Is your code tested? Is it readable? How easy is it to add or modify code without introducing bugs? How maintainable is it going to be? Is it easily extensible? Is technical debt creeping up? Is there a way to automatically flag potential issues?

Software metrics are important because they help answer these questions. They provide objective, quantifiable measurements that support the myriad of decisions that developers make daily.

Yet software metrics are not without their flaws and most developers welcome them with about the same enthusiasm as someone expecting a root canal job.

It is true that no single software metric provides hard and fast answers to follow blindly. Instead they provide additional inputs for meaningful conversations during tests and code reviews. Using a combination of them sharpens the developer intuition and contributes towards making software engineering a more predictable affair.

What you’ll learn

The purpose of this article is to provide a quick and easy overview of the most widely used metrics, and how to interpret them.

We’ll look at cyclomatic complexity, code churn, code coverage, code duplication, and a few more. We’ll highlight the ones that matter most and those that don’t. We’ll provide a brief explanation on how to read and interpret them, evaluate their benefits and limitations and look at how they can complement the developer’s qualitative judgement with quantitative input.

If you’re involved in enterprise software development projects and need to maintain code quality to the highest level, this book is for you.


About Codacy

Codacy is used by thousands of developers to analyze billions of lines of code every day!

Getting started is easy – and free! Just use your  GitHub, Bitbucket or Google account to sign up.

GET STARTED

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Subscribe to our newsletter

To be updated with all the latest news, offers and special announcements.

Recent posts

7 drawbacks of linting tools

Linting tools (also known as linters or static analyzers) help automate the code review process. They perform basic static code analysis by flagging programming...

Using the API to add Codacy Grade details to the Readme

Some context Codacy has a badge mechanism that can be included in your Readme file. It gives you an idea of the grade of your repository, from...

March Product Update: Support for Cloud Infrastructure-as-code, Custom Reports with API endpoints & more 🚀

Here are some fresh updates from March! This month we bring you a new product offering, new features, and product updates, interesting reads, and...

Top 10 ways to perform fast code review

We always want to be fast at code review.. How frequent is it for you to be reviewing code at 3am? When code reviewing, do you...

Interview with Gary McKay, Somos’ Director of Agile Service Delivery

Somos is a proven leader in registry management and data solutions. Somos fosters meaningful connections by delivering value, innovation and confidence to consumers. We...