~/talk

Goodbye Regex. Hello Parsers!

Talkat NDC Sydney 2020 · 2020-08-31..09-03· [javascript, web-platform]
links:none on file
slides:none on file

Regex breaks when routes and nested grammars need clarity so the demo replaces a tangled single regex with explicit TypeScript parsers, first built a parser from scratch to evaluate "12+34" with map many and satisfy primitives, then uses the library Parsimmon to implement URL routing, a GUID parser and a recursive angle grammar that parses nested key value structures. Tests run with TDD, negatives stay failing as intended, positives pass, and tradeoffs include performance vs readability and regex DoS.

AI-written summary · about

  1. 0:00Start
  2. 0:09Hello Parsers! Hackle Wayne
  3. 1:09Less RegEx. More Parsers! A user's view
  4. 7:35Parsers can help! How, what and why
  5. 9:20Case study A rest-some URL
  6. 32:45Live coding... A naive parser from scratch
  7. 57:44RegEx = Parsers @hacklew
~/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.