# scc 4.0: Hotspot Analysis Finds the Files That Need the Most Attention

Original title: Sloc Cloc and Code 4.0 (scc) – Finding the files that need the most attention

> Hacker News story 49415923 · language: en · submitted 2026-08-24
> Web version: https://zeli.app/story/49415923
> About this feed: https://zeli.app/llms.txt · Agent guide: https://zeli.app/skill.md

▲ 45 · by [boyter](<https://news.ycombinator.com/user?id=boyter>) · 💬 9
[original](<https://boyter.org/posts/sloc-cloc-code-hotspots-finding-files-that-need-attention/>) · [HN discussion](<https://news.ycombinator.com/item?id=49415923>)

## Summary

scc, the popular code counter, jumps to version 4.0 with a new hotspot feature that multiplies complexity by commit frequency to identify files that are both complex and frequently changed. This metric, inspired by Adam Tornhill's work, helps developers focus on code that is hard to work with, not just buggy. The release also includes change coupling analysis to reveal hidden dependencies between files. Benchmarks show the new feature is slower than the usual scc run, but still fast enough for practical use.

## Key quote

> Google failed because a hotspot flag gives you no action, but a similar idea pointed at an unfamiliar codebase becomes an onboarding map.

## HN discussion (9 comments)

### [vivzkestrel](<https://news.ycombinator.com/item?id=49487114>)

> \- saw this other post on your blog
>
> \- https://boyter.org/2010/08/mysql-backups-done-easily/
>
> \- is an sqldump actually a backup?

### [cnnrrss](<https://news.ycombinator.com/item?id=49486365>)

> Congratulations on the release boyter! scc has been a really useful tool for probing projects. Looking forward to the new features.

### [aslakhellesoy](<https://news.ycombinator.com/item?id=49487253>)

> Very interesting. This reminds me a lot of the CRAP metric - a combination of cyclomatic complexity and code coverage.
>
> It would be intersting to combine your «attention» metric with CRAP.

---

## Cite

- Page: https://zeli.app/story/49415923
- Date: 2026-08-24
- Source: boyter.org (https://boyter.org/posts/sloc-cloc-code-hotspots-finding-files-that-need-attention/)
- Hacker News: https://news.ycombinator.com/item?id=49415923

## Other languages

- zh: https://zeli.app/zh/story/49415923 · markdown: https://zeli.app/zh/story/49415923.md
- ja: https://zeli.app/ja/story/49415923 · markdown: https://zeli.app/ja/story/49415923.md
- ko: https://zeli.app/ko/story/49415923 · markdown: https://zeli.app/ko/story/49415923.md
- de: https://zeli.app/de/story/49415923 · markdown: https://zeli.app/de/story/49415923.md
- es: https://zeli.app/es/story/49415923 · markdown: https://zeli.app/es/story/49415923.md
- ru: https://zeli.app/ru/story/49415923 · markdown: https://zeli.app/ru/story/49415923.md
