~/talk

JavaScript ❤ binary data

TalkinRussianat HolyJS 2018 Piter · on Saturday, 2018-05-19· [javascript]

Demonstrates using JavaScript ASTs (via Babel tools) to reliably analyze and transform code instead of regexes: builds a detector/remover for console.log and debugger that passes 17 tests and correctly handles comments, strings, templates and call-site edge cases. Uses babel-traverse, babel-types and code generation to replace AST nodes, explores AST Explorer to show why nodes can have many properties, and turns the tool into an ESLint-style fixer used as a precommit script.

AI-written summary · about

  1. 0:00Introduction
  2. 4:59Regex limitations
  3. 5:20What is AST
  4. 10:03AST structure example
  5. 14:25Finding console.log with AST
  6. 20:36Removing console.log
  7. 22:25Finding and removing debugger with AST
  8. 27:01AST practical uses
  9. 30:13AST tools and libraries
  10. 33:11Preserving formatting
  11. 36:45Finding console.log with IDE
  12. 39:18Q&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.