~/talk

WTFJS

Talkat dotJS 2012 · 2012-11-30..12-01· [javascript]
slides:none on file

Live demos show specific JavaScript pitfalls and one-line hacks with working console output: 0.1 + 0.2 != 0.3 and IEEE‑754 quirks, parseInt radix bug that parses leading zeros as octal, surprising == coercions (array vs string vs number), Date.now and +casting, double‑dot toFixed syntax, double tilde fast rounding, Math.max/Math.min oddities, NaN/Infinity behavior, and a Constructor-as-eval trick. Examples include mutated Number.prototype breaking comparisons and concise fixes; code runs live so results and gotchas are visible.

AI-written summary · about

  1. 0:00Start
  2. 6:03typeof {} 'object'
  3. 12:45Math.max() Math.min() false Math.max -Infinity
  4. 15:56'constructor' typeofc 'string' C[c] [Function: String]
  5. 17:16Either the language is crazy or we are for using it!
  6. 17:40We challenge everything.
~/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.