~/talk

The top 5 JavaScript issues in all our codebases

Talkat CityJS Athens 2023 · on Tuesday, 2023-05-30· [javascript, developer-experience]
slides:none on file

Scans of hundreds of millions of JavaScript lines in SonarCloud identify the five most common concrete problems: unused assignment left in functions, use of double equals which also runs much slower than ===, large blocks of commented-out code, legacy var usage instead of let/const, and functions with high cognitive complexity (Sonar flags >15). The data comes from static analysis rules (SonarQube/SonarCloud and SonarLint) and the fixes shown are targeted refactors and linting/CI enforcement.

AI-written summary · about

  1. 0:00Introduction to talk
  2. 3:43About the speaker
  3. 4:25Top 5 JavaScript issues data
  4. 8:38Unused variable assignments
  5. 10:22Strict equality checks
  6. 12:07Commented-out code
  7. 13:09Avoiding var in JavaScript
  8. 15:16Cognitive complexity explained
  9. 23:28Tools and resources
  10. 24:09Call to action
~/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.