~/talk

Modular & reusable front end code

slides:none on file

Argues for building front-end code as independent modules: use HTML5 sectioning (multiple H1s OK) and Modernizr for older IE, scope styles with a mod- prefix and shallow selectors, keep media queries inside each module, and store one Sass/JS file per module (one-file-per-module), assembled with Sprockets. Use classes for CSS, IDs only for JS, and prefer data- attributes for grouping. Benchmarks show finding by class is only ~5% faster than by data-attributes in Chrome and mobile devices still handle dozens of queries per second, so data-attributes are practical.

AI-written summary · about

  1. 0:00The philosophy of modules
  2. 5:08Front-end modularity
  3. 6:50HTML5 and semantic structure
  4. 10:25Modular CSS styling
  5. 13:19Naming and scoping modules
  6. 16:09Generic and modifier modules
  7. 18:23Media queries and design
  8. 21:05Behavior with JavaScript
  9. 26:44File architecture and Q&A
~/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.