Using Boost.Coroutine to Untangle a State Machine
Offered By: CppNow via YouTube
Course Description
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
Related Courses
Computer GraphicsUniversity of California, San Diego via edX Intro to Parallel Programming
Nvidia via Udacity Initiation à la programmation (en C++)
École Polytechnique Fédérale de Lausanne via Coursera C++ For C Programmers, Part A
University of California, Santa Cruz via Coursera Introduction à la programmation orientée objet (en C++)
École Polytechnique Fédérale de Lausanne via Coursera