The top 5 JavaScript issues in all our codebases
summary
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
chapters (12)
- 0:00Introduction to clean code
- 1:39Data and code quality
- 8:53Unused assignments
- 11:45Strict equality
- 13:51Commenting out code
- 16:48TypeScript-specific issues
- 19:07React and JSX best practices
- 21:29Unnecessary imports
- 22:49Modern variable declaration
- 25:57Cognitive complexity
- 33:35Refactoring for simplicity
- 41:41Conclusion and tools
related talks
35mThe top 5 JavaScript issues in all our codebases
25mThe top 5 JavaScript issues in all our codebases
25mThe Top 5 JavaScript Issues in All Our Codebases
42mThe top 5 JavaScript issues in all our codebases
58mImproving the Quality of JavaScript Code
45mConquering complexity: refactoring JavaScript projects
58mImproving Quality of JavaScript Code
30mRefactoring large JavaScript codebases
