#codemetrics

New blog post: Metrics

Over the years I’ve used a number of different ways of measuring software. The following is a roughly chronological account. [...]

underlap.org/metrics/

#SoftwareDevelopment #CodeMetrics

martincho_martincho_
2025-02-19
danzindanzin
2024-01-05

So I've created a report for one thousand Black (the Python formatter) commits.

You can see that there was a huge (and complex), 7k lines __init__.py that got broken up around May 2021.

There's a trend of increasing LOC and complexity.

This report shows me there's a lot to improve in wily's code. Hopefully I'm back at that.

@hugovk @ambv

devdanzin.github.io/black/

danzindanzin
2023-09-21

Mike Driscoll: Learning About Code Metrics in with Radon

Nice introduction to :

"""
You can use Radon to help you find complex code in your code base.
[...]
Here are the four commands that radon currently can use:

cc: compute
raw: compute raw metrics
mi: compute Index
hal: compute complexity metrics
[...]
"""

blog.pythonlibrary.org/2023/09

Client Info

Server: https://mastodon.social
Version: 2025.07
Repository: https://github.com/cyevgeniy/lmst