~/talk

Refactoring large JavaScript codebases

Talkat Øredev 2022 · 2022-11-08..11-10· [javascript, developer-experience]
slides:none on file

Upgrading to newer Node versions and language features forces concrete fixes not vague guidance: promise rejections start terminating processes on Node 16, optional chaining breaks on Node 12, and heavy use of lodash.get inflates CPU cost in huge repos. Two practical routes appear: coordinate owners + lint rules + husky to incrementally ban patterns, or run JS code shift codemods that parse ASTs and rewrite code (author reports tackling 50 000 files quickly). Tests and QA are mandatory; some fixes need human error-handling work.

AI-written summary · about

  1. 0:00Start
  2. 14:28Parsing
  3. 16:30Transforming
  4. 21:05TTypescript Example
~/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.