~/talk

with: JavaScripts most reviled keyword

Talkat JSConf US 2011 · 2011-05-02..05-03· [javascript]
slides:none on file

Claims that the with keyword creates a shared per-module object that prevents third-party scripts from leaking globals into the page scope and breaking minifiers resolve as concrete fixes: code uses the closure compiler plus a build tool plover to rewrite functions and top-level assigns, turning 100000+ lines into 25 modules loaded by script tags. A real bug where bing maps changed true to 3 is traced and this module-with approach runs at scale (IE6 compatible) with no observed breakage.

AI-written summary · about

  1. 0:00Start
  2. 0:41What people are saying about with
  3. 3:27Collisions with application code
  4. 4:47Preventing collisions when using modules
  5. 8:43Using with to share module scope
  6. 11:07Required transformations for this technique
  7. 14:12Transforming code with the Closure Compiler
  8. 19:24Summary
~/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.