~/talk

New Linting Rules

Talkat GOTO Copenhagen 2014 · 2014-09-25..09-26· [javascript, developer-experience]
slides:none on file

A custom linter built by the author flags real issues: typeof null bug, 24 coercion cases with 7 gotchas (rule: never use == true/false and avoid comparing to empty string/0/[]), recommends restrictmode.org to detect unsafe coercions and a letter tool to transpile explicit block-scoping (let) back to ES3/ES5. Advice: name function expressions for readable stack traces, use block scoping for per-iteration let in loops, follow four simple rules for this binding, and prefer object delegation via Object.create over class-style prototype hacks.

AI-written summary · about

  1. 0:00Start
  2. 17:30the seven bad cases
  3. 25:21put a name on your function expressions
  4. 26:35using the inline nested functions
  5. 28:35hoist all your vars to the top of your functions
  6. 30:01take a look at the man page for block scoping block
  7. 37:57put a new keyword in front of a function call
  8. 38:24putting the new keyword in front of a function
  9. 44:18putting the word prototype in front of inheritance
  10. 48:48putting properties directly on the objects
~/search
type to search 8,222 conferences, 162,397 speakers and 219,688 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
← →
on a talk: 5 seconds back / forward
0–9
on a talk: jump to 0%–90% of the recording
?
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.