~/talk

Write once, run anywhere - cross-env JS

Talkat CityJS New Delhi 2024 · 2024-11-16..11-17· [javascript, nodejs]
name:Josh Wulf
github:jwulf
slides:none on file

Claim: a single codebase can run on browser Node and Deno but only by shrinking to their common feature set and by adding platform-specific adapters. Uses a monorepo that outputs ESM and CommonJS dual builds (Rollup suggested) and drops most third-party deps, producing handcrafted lightweight code. Handles disjoint features with dependency injection using a persistent storage interface injection pattern (localStorage vs filesystem). Result trades fewer runtime deps for more build complexity and explicit adapter code that actually works across the three runtimes.

AI-written summary · about

  1. 0:00Introduction and philosophy
  2. 2:30Complexity in programming
  3. 3:32Cross-environment strategy
  4. 6:24Benefits of platform unity
  5. 8:26Build chain considerations
  6. 10:23Handling disjunct features
~/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.