~/talk

s/regex/DSLs/: What Regex Teaches Us About DSL Design

Talkat RubyConf 2015 · 2015-11-15..11-17· [ruby, component-design]
github:bhaibel
slides:none on file

Regex serves concrete lessons for DSL design: it favors tight domain integration by expressing text-processing in text, it leans on composability via simple grammar, and it succeeds by staying small—closed domain integration—not trying to parse everything. The concrete toolkit described: three Ruby DSL shapes (class-macro, method-chaining, block), a Twitter-query micro-DSL built without monkeypatching, and practical extension APIs like RSpec’s; historical and production context includes regex embedded across tools and ActBlue’s cited $30 average donation and ~$850M raised.

AI-written summary · about

  1. 0:00Start
  2. 0:31Introduction for Regular Expressions
  3. 5:27What Are Dsl
  4. 6:36Whether Regex Are Actually a Dsl
  5. 12:16Composability
  6. 13:11Class Macro Dsl
  7. 13:50Method Chaining
  8. 15:23Nested Block Dsl
  9. 18:25Why Reg Exes Are Made of Strings
  10. 26:29Closed Domain Integration
  11. 28:01Getting There
~/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.