Friday, September 06, 2024

Typestate Pattern

I recently gave a slideshow presentation that I entitled "Typestate Pattern in Rust: With Fluent Constructor and State Machine Examples".  My thanks again to Cameron Dershem, the Organizer of the Indy Rust Meetup, for giving me the opportunity to speak to his group a second time.  I also thank the members of the Dallas Rust User Meetup (DRUM) for letting me practice initial drafts of my talk on them at our semimonthly online meetings.

In my talk, I started by providing the contexts for using the typestate pattern before digging into the implementation details as demonstrated by the examples in my open source code repository.  By working daily on the code examples for a month, I reached the point where I finally feel like I understand typestate and its variations.  You can download the presentation slides in PDF format from my Rust and WebAssembly research page.