~/talk

The Top 5 JavaScript Issues in All Our Codebases

Talkat XtremeJS 2023 · on Tuesday, 2023-11-21· [javascript]
slides:none on file

Sona Cloud scans hundreds of millions of JavaScript lines and reports the top five static issues: unused assignments, using double equals/not equals, commented out code, using var instead of let/const, and functions with cognitive complexity >15. SonarLint highlights exact locations in the editor, SonarJS ESLint plugin enforces rules, and Sonar Cloud/Cube run in CI. A real 90‑line slide function scores 19 on cognitive complexity, gets refactored with an early return and helpers, and drops below 15.

AI-written summary · about

  1. 0:00Clean JavaScript code
  2. 1:06Data sources for issues
  3. 3:13Readability matters
  4. 5:39Unused assignments
  5. 8:28Double equals dangers
  6. 10:59Commented code harms
  7. 12:22VAR to let and const
  8. 14:08High function complexity
  9. 23:56Top five JavaScript issues
~/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.