~/talk

Cyclomatic Complexity for Developers

TalkinDutchat Devoxx Belgium 2017 · 2017-11-06..11-10· [testing]
links:none on file
slides:none on file

Explains cyclomatic complexity as the exact measure from a control‑flow graph using M = E − N + 2 applied to individual Java methods, and shows how switches, loops and boolean operators (&&/||) each increment the count so a single long method can reach the common threshold of around 10. Demonstrates computing complexity with SonarQube to locate hotspots, gives concrete Java examples of switch‑heavy and boolean‑dense methods, and notes that some high complexity scores are unavoidable while others can be reduced by refactoring.

AI-written summary · about

  1. 0:00Welcome
  2. 0:49Cyclomatic complexity
  3. 1:56Calculating complexity
  4. 3:19Branching impact
  5. 4:47Complexity example
  6. 6:24Nested structures
  7. 7:54Boolean conditions
  8. 9:06Simplifying code
  9. 10:23Unmanageable complexity
  10. 11:28Code review metrics
  11. 12:55Complexity analysis
  12. 13:15Q&A
~/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.