~/talk

Sinatra in SIX lines - How to do crazy stuff with Ruby

Talkat RubyConf AU 2013 · 2013-02-20..02-22· [ruby]
github:rkh
slides:none on file

A Sinatra-compatible implementation compresses core behavior into six lines, implementing configure blocks, sessions, helpers, before filters, route params and inline templates by leaning on Rack Tilt and Sprockets and using tricks (pack, here-docs, flip‑flops, global request, method objects) to shave bytes; a separate almost rack three-line runner handles config.ru, and an almost rack protection middleware outright rejects attacks (reportedly handling ~9,000 requests in an hour); people run it in production and blog analyzers parse the obfuscated-but-working code.

AI-written summary · about

  1. 0:00Intro
  2. 0:22Twitter handle
  3. 0:52Discount code
  4. 1:31Realtime Rails Ruby
  5. 2:02Code Slides
  6. 2:42Fun Ruby code
  7. 5:20Docks
  8. 8:40Flipflops
  9. 10:44Flipflops for Rubinius
  10. 13:24Sinatra in 6 lines
  11. 14:16Sinatra implementation
  12. 18:16Sinatra methods
  13. 25:41Coding guidelines
  14. 27:46Rackup
  15. 31:45Almost Wreck Protection
  16. 36:23Conclusion
~/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.