Class Central is learner-supported. When you buy through links on our site, we may earn an affiliate commission.

YouTube

Using Boost.Coroutine to Untangle a State Machine

CppNow via YouTube

Overview

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.

Syllabus

Nat Goodspeed: Using Boost.Coroutine to untangle a state machine

Taught by

CppNow

Reviews

Start your review of Using Boost.Coroutine to Untangle a State Machine

Never Stop Learning.

Get personalized course recommendations, track subjects and courses with reminders, and more.

Someone learning on their laptop while sitting on the floor.