The ability to create DSLs is one of the biggest strengths of Ruby. They allow us to write easy to use interfaces and reduce the need for boilerplate code. On the flip side, DSLs encapsulate complex logic which makes it hard for developers to understand what's happening under the covers.
Surfacing DSLs as static artifacts makes working with them much easier. Generating RBI/RBS files that declare the methods which are dynamically created at runtime, allows static analyzers like Sorbet or Steep to work with DSLs. This also allows for better developers tooling and as some kind of "DSL linter".
The intended audience for this talk is Ruby developers who are novice or above.
The talk will follow the following general outline:
The expected outcome from this talk is for the viewers to be better acquainted with writing, reading and understanding DSLs, and for them to be aware of the state of static analysis with respect to DSLs.
The proposed speaker is the primary architect and lead author of the DSL RBI generation framework built inside of the Tapioca RBI generator and has a deep understanding of how many popular DSLs operate and how they can be analyzed to surface information for static analysis. The experience of working in this problem space for over a year now has given him a new perspective on the opportunities that are available to us for DSL analysis.
He is also an experienced speaker at various Ruby conferences, including a previous RubyKaigi talk.