Explore a case study on simplifying complex event-driven program logic using Boost.Coroutine in this 40-minute conference talk from CppNow 2012. Discover how reimplementing a startup sequence with coroutines can dramatically improve code readability and maintainability. Follow the evolution of a program that makes sequential requests to external servers, starting from a basic switch statement approach, progressing through a Boost.Statechart implementation, and finally arriving at a coroutine-based solution. Learn how coroutines can transform convoluted state machine logic into a clear, nested loop structure that's easy to understand and modify. Gain insights into the benefits of using Boost.Coroutine for managing complex control flow in C++ programs, especially in scenarios involving asynchronous operations and event-driven architectures.
Overview
Syllabus
Nat Goodspeed: Using Boost.Coroutine to untangle a state machine
Taught by
CppNow