Joyful Polyglot: Beautiful insights from many languages
summary
Shows four concrete cross-language patterns and working code: curried functions (JavaScript recomposed, ported to Ruby for S3 movers) that yield clear dependencies and make dependency injection and testing trivial giving about 90–95% test coverage; a companion objects style separation of data/state and actions inspired by Scala; an interface/wrapper pattern to build a simple DSL around Dialogflow and simplify mocking; and a Spring-style bean/object-graph for separating what from when. Examples include image pipelines, S3 scripts, a Dialogflow chatbot and an Airtable→Slack hobby project.
AI-written summary · about
chapters (7)
- 0:00Polyglot programming intro
- 1:13Curried functions JS to Ruby
- 5:08Companion objects Scala Ruby
- 8:19Interfaces dependency wrapping Java
- 10:46Object graphs in Spring Boot
- 12:32Hobby project combining patterns
- 13:57Q&A on Ruby functional patterns
related talks
31mSeeing Metaprogramming and Lambda Function Patterns in Ruby
45mHow Programming in Other Languages Made my Ruby Code Better
47mA Game of Theories: why languages do what they do
44mReal-World Functional Ruby
35mReal-world Functional Ruby
52mHow Programming In Other Languages Made My Ruby Code Better
30mRuby Techniques by Example
39mFunctional Architecture for the Practical Rubyist
