~/talk

Improving Quality of JavaScript Code

Talkat JS Fest 2019 Autumn · 2019-11-08..11-09· [javascript, developer-experience]
slides:none on file

Claims that long functions kill agility backed by an example of a 7000-line function and a concrete refactor path: rewrite imperative loops into functional pipelines, shorten functions, prefer const/let over var and use ===. Code samples (imperative, functional, concise) are linted with ESLint and measured with Plato; scores move from 64 to 93 to 100 maintainability and the CI step runs npm install then eslint and fails the build on errors, so the tools and metrics actually work.

AI-written summary · about

  1. 0:00The importance of quality
  2. 2:36Why code quality matters
  3. 5:53Design and long functions
  4. 10:06Dangers of long functions
  5. 13:21The DRY principle
  6. 14:49JavaScript pitfalls
  7. 18:47Scoping and global variables
  8. 22:47Writing predictable code
  9. 27:28Functional programming
  10. 35:37Readable code patterns
  11. 39:53Maintaining code standards
  12. 43:51Tooling for code quality
  13. 55:11Closing and Q&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.