~/talk

JavaScript Gotchas

Talkat Jfokus 2016 · 2016-02-08..02-10· [javascript, developer-experience]
slides:none on file

Covers concrete JavaScript pitfalls: implicit globals from missing var and why use strict prevents them, ES6 let giving true block scope, NaN not equal to itself so use isNaN, and Date parsing returning NaN. Demonstrates numeric limits (Number.MAX_SAFE_INTEGER) that stop incrementing, string+number coercion, + operator quirks, and loop speed: for-in is ~10x slower than indexed loops so cache length for speed. Shows JIT rules: try/catch and >600‑char functions prevent optimization (114ms vs ~2x slower), and closures via event listeners cause persistent memory leaks.

AI-written summary · about

  1. 0:00Introduction
  2. 12:55MathMax
  3. 13:55Poetry
  4. 15:48Equals
  5. 20:00Not a Number
  6. 25:58Loops
  7. 29:28Numbers
  8. 31:58Hot Functions
  9. 38:58Type Off
  10. 43:13Memory
~/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.