~/talk

The top 5 JavaScript issues in all our codebases

Talkat NDC Oslo 2023 · 2023-05-22..05-26· [javascript, testing]
slides:none on file

Scans of hundreds of millions of JS/TS lines claim the top recurring problems: unused assignments and commented-out code that just clutters files, widespread use of == / != instead of === / !==, plenty of unnecessary imports and TODO comments, and old var usage instead of let/const; cognitive complexity is flagged as the most impactful maintainability issue (tools mark functions above cognitive complexity ≥15). Practical fixes use Sona Cloud, Sonalint and an eslint plugin to locate and refactor the offenders.

AI-written summary · about

  1. 0:00Introduction to clean code
  2. 1:39Data and code quality
  3. 8:53Unused assignments
  4. 11:45Strict equality
  5. 13:51Commenting out code
  6. 16:48TypeScript-specific issues
  7. 19:07React and JSX best practices
  8. 21:29Unnecessary imports
  9. 22:49Modern variable declaration
  10. 25:57Cognitive complexity
  11. 33:35Refactoring for simplicity
  12. 41:41Conclusion and tools
~/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.