~/talk

Reusing your frontend JS on the server with The Ruby Racer and/or Ruby Rhino

Talkat Rubyfuza 2013 · 2013-02-01..02-03· [javascript, ruby]
slides:none on file

Shows how a Rails app embeds V8 via Ruby Racer (or Ruby Rhino on JRuby) to execute the same CoffeeScript Back­bone models server‑side, avoiding duplication. Uses thin Ruby wrappers to inject a Ruby view into JS layouts and renders PDFs with Prawn, reusing 50+ tiny financial models (15 core ratios) so one change updates browser UI and a 34‑page PDF. Prototype compiles assets on the fly, handles fake window/console, and produces a 34‑page PDF from ~200 lines of Ruby.

AI-written summary · about

  1. 0:00Introduction and context
  2. 1:00Business model challenges
  3. 2:45Front-end architecture
  4. 4:25The PDF generation dilemma
  5. 6:19Implementing cross-platform logic
  6. 9:01Server-side integration
  7. 10:53Layout and view wrappers
  8. 14:24Benefits and results
  9. 15:54Q&A and closing
~/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.