~/talk

The Importance of import and export

Talkat EmpireNode 2015 · on Friday, 2015-10-23· [javascript]
links:none on file
slides:none on file

Argues that ES2015 import/export gives live bindings that fix CommonJS pain points: eval abuse, circular dependency fragility, module.exports confusion, and impossible dead‑code elimination. Shows concrete wins: patching strategies like graceful-fs work with live imports, bundle tool rollup can produce ~4x smaller output by tree‑shaking, and practical rollout advice—publish ES2015 sources to npm and add jsnext:main. Mentions transpilers (Babel), Meteor 1.3 support, and a starter repo to try today.

AI-written summary · about

  1. 0:00Intro
  2. 1:26Let's talk about eval
  3. 7:36How code is loaded
  4. 9:21Problem 2: Dependency cycles
  5. 16:51A native module system...
  6. 19:44So how does it work?
  7. 23:29Multiple exports?
~/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.