#35 State Machines Part-1: What is a state machine?

Quantum Leaps, LLC
Quantum Leaps, LLC
45.9 هزار بار بازدید - 4 سال پیش - This lesson starts a new
This lesson starts a new segment about STATE MACHINES. The lesson starts with the biggest challenge of event-driven programming, which is preserving the context from one event to the next. You'll see how the usual improvised context management leads to "spaghetti code".

Next, you'll see a different approach, in which you capture only the "relevant history" of the system and how this leads to the concepts of "State" and "State Machine". You'll also learn the basic elements of state diagrams, and you'll see how to design a state machine diagram for the "Blinky-Button" example.

Finally, you'll see how state machines complement the Active-Object design pattern, and you
go through the experience of coding a state machine in C.

-------
Resources:

Companion web page for this video course:
https://www.state-machine.com/quickstart

GitHub repository for projects for this video course:
https://github.com/QuantumLeaps/moder...

Freeware QM modeling tool download:
https://github.com/QuantumLeaps/qm/re...

Transcript of this lesson:
https://www.state-machine.com/course/...

Music credits:
The background music comes from:
https://www.bensound.com/royalty-free...
4 سال پیش در تاریخ 1399/09/02 منتشر شده است.
45,947 بـار بازدید شده
... بیشتر