~/talk

Making a Rails App with 140 Characters (or less)

Talkat RailsConf 2016 · 2016-05-04..05-06· [ruby-on-rails]
slides:none on file

Start from the claim: Rails can be shrunk to a tweet. The demo pares 433 lines across 61 files down to a one‑line shell command using Rack and the railtie, e.g. rackup -r action_controller/railtie -b "Class.new(Rails::Application){self.secret_key_base='x'; routes{get '/', to: proc{|env| [200,{},['hi']]}}}.initialize; run _1" The build actually runs (returns 404 by default until routes are added), shows ~10MB memory savings when not loading Sprockets, and measures middleware cost with derailed benchmarks and ab.

AI-written summary · about

  1. 0:00Introduction
  2. 1:37Rails Developer Minds
  3. 3:08Rails is Lightweight
  4. 6:00Deleting Empty Files
  5. 9:43Deleting App Folder
  6. 11:20Deleting Bin Folder
  7. 14:20Rails All
  8. 19:23Inline Everything
  9. 23:26API Only
  10. 37:09Homework
~/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.