~/talk

Modern JavaScript, without giving up on Rails Jonathan Johnson

Talkat Ruby Hack 2019 · 2019-04-04..04-05· [ruby-on-rails, javascript, vue]
links:none on file
slides:none on file

Claims that an aging Rails app can adopt modern JavaScript without a rewrite and shows exactly how: add webpack(er) and Yarn, import Vue single-file components, mount small “apps as upgraded partials” via a view app helper that serializes props into data-attributes, extract shared modules into a vendor chunk, scaffold packs and specs with a generator, and run unit tests alongside Rails tests. The approach ships to production, scales from form fields to full pages, and progressively replaces global jQuery code.

AI-written summary · about

  1. 0:00Introduction
  2. 1:05Modern JavaScript
  3. 2:17Assumptions
  4. 5:37Goals
  5. 9:49Packs
  6. 14:27Asset Pipeline
  7. 15:25Single Page Architecture
  8. 16:42App vs Component
  9. 20:09View Component
  10. 23:20Data Passing
  11. 29:48View App Generator
~/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.