~/talk

Actionable insights vs ranking How to use and how NOT to use code quality metrics

Talkat PyCon US 2022 · 2022-04-27..05-03· [developer-experience]
name:Reka
links:none on file
name:Ben
links:none on file
slides:none on file

Shows concrete metrics, Python code snippets, and calculations for function length, cyclomatic and cognitive complexity, and a working memory score so you can reproduce numbers. Reports that the median function length ~5–6 lines and typical working memory ≈9 across popular projects. Uses repoanalysis.com and Sorcery tooling and a weighted aggregate like a maintainability index. Demonstrates a real rewrite that cuts cognitive complexity and warns that outliers persist and metrics can be gamed.

AI-written summary · about

  1. 0:00Start
  2. 1:01Overview
  3. 4:05Function Length
  4. 5:48Cyclomatic Complexity
  5. 10:55Working Memory
  6. 12:30Code Quality Metrics Matrix
  7. 13:31Compound Metrics
  8. 18:22Interpretation
  9. 19:32Refactor or rewrite?
  10. 20:44Recommended Usages
  11. 22:07Summary
  12. 23:01General
  13. 24:17What Code Quality Doesn't Measure
  14. 25:26Use metrics for
  15. 26:12Do not use metrics
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.