~/talk

MVC Ruby in less than 5k. The wonder of Camping

Talkat RubyConf 2024 · 2024-11-13..11-15· [ruby, web-platform]
links:none on file
slides:none on file

A nearly 20‑year‑old MVC microframework gets resurrected and made to run on modern Ruby with only a couple of code changes; the core is minified to 5,181 bytes and still provides models, controllers, views, a reloader and a Rack server that actually works. It leverages Ruby metaprogramming, mab templates, Rack conventions, and Sequel for models, shows the route/URL builder and plugin pattern, adds tests, fixes breakage, and proves compact code can be maintainable.

AI-written summary · about

  1. 0:00Introduction
  2. 2:56What is Camping
  3. 7:36Camping’s MVC and single-file design
  4. 10:51Routes and controllers
  5. 13:21Models and plugins
  6. 16:55Camping with Rack
  7. 22:58Camping server
  8. 24:23Ruby’s role
  9. 25:30Why Camping and community
~/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.