MVC Ruby in less than 5k. The wonder of Camping
summary
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
chapters (9)
- 0:00Introduction
- 2:56What is Camping
- 7:36Camping’s MVC and single-file design
- 10:51Routes and controllers
- 13:21Models and plugins
- 16:55Camping with Rack
- 22:58Camping server
- 24:23Ruby’s role
- 25:30Why Camping and community
related talks
30mWeb Applications with Ruby (not Rails)
35mExploring Merb
31mRuby Archaeology: Forgotten web frameworks
01h 09mRails 3 ...and the real secret to high productivity
33mWeb applications with Ruby (not Rails)
41mWriting Modular Ruby Code: Lessons Learned from Rails 3
01h 03mStrengthening the Ruby Ecosystem Part II: Merb
34mHow to scale a Ruby webservice
