~/talk

To Clojure and back: writing and rewriting in Ruby

Talkat RubyConf 2016 · 2016-11-10..11-12· [ruby, frontend-architecture]
name:Phill MV
links:none on file
slides:none on file

Team chooses Datomic and Clojure for immutable data and point‑in‑time queries, hits long boots and huge memory, then rewrites into a single Ruby monolith to cut complexity. Rewrite takes four months, converting 8300 lines of Clojure + 3000 Ruby into 8700 lines of Ruby and yields about 50–100% faster responses. Key tactics: collapse services, prefer value objects and manager objects, implement data‑model fixes in Postgres rather than exotic stores, avoid distributed microservices until needed.

AI-written summary · about

  1. 0:00Start
  2. 5:19Functional programming
  3. 6:31refactoring is simpler
  4. 13:24bad architectural assumptions
  5. 13:44separate deployments = more overhead
  6. 14:02death by a thousand papercuts
  7. 16:14comically terse documentation
  8. 18:05feeling frustrated
  9. 18:59strange feeling of culture shock
  10. 21:30your service boundaries should mimic your team boundaries
  11. 23:22reconciliation
  12. 26:43"value" object
  13. 27:20more aware of how state flows
  14. 27:52controller: handles input model: handles persistence manager: handles state
  15. 29:461. Clojure is worth learning! Seriously
  16. 31:23avoid working on problems that don't matter
  17. 31:39exhaust the tools you know before reaching for a new one
  18. 32:09code should make you happy
~/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.