~/talk

The top 5 JavaScript issues in all our codebases

Talkat jsday 2023 · 2023-04-13..04-14· [javascript, developer-experience]
slides:none on file

Data from thousands of projects on SonarCloud and SonarQube shows five concrete problems: the single biggest issue is widespread use of var instead of let or const, many functions exceed the SonarJS cognitive complexity threshold (cognitive complexity >15), frequent unused assignments clutter codebases, loose equality (==/!=) causes bugs and performance hits, and checked‑in commented‑out code remains. SonarQube Community Edition and SonarLint are cited as the actual tools used to detect these patterns and the talk gives concrete refactoring moves (extract functions, replace var, prefer ===) tied to those detections.

AI-written summary · about

  1. 0:00Top JavaScript issues
  2. 6:51Unused assignments
  3. 10:03Double vs triple equals
  4. 13:58Commented out code dangers
  5. 16:25Avoid let and var
  6. 20:01Cognitive complexity
  7. 32:44Summary and call to action
  8. 33:07Q&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.