~/talk

Else Considered Harmful

Talkat JSConf.ar 2014 · on Saturday, 2014-11-29· [developer-experience]
slides:none on file

Code claims that the problem is the else not the if and shows concrete replacements: bail early so the main flow stays unindented, replace conditional with polymorphism or a type keyed map instead of sprawling if else chains, and extract conditionals into named functions when elimination is impossible. The talk measures how elses introduce context switches, cites the surprising prevalence of else clauses in code, and demonstrates patterns and small refactors that actually reduce complexity and make behavior visible.

AI-written summary · about

  1. 0:00Intro
  2. 4:58Context
  3. 5:18Why Else
  4. 7:12Face Recognition
  5. 7:51Sound Recognition
  6. 8:56Essential Part
  7. 11:14Polymorphism
  8. 13:59Patterns
  9. 18:07Conditionals
  10. 18:19Extracting
  11. 18:49Abstraction
  12. 19:11Closing
~/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.