Entities lifecycle is usually something more than create and delete. Models with which we are working on day to day basis change their state under some business circumstances. State machine patterns can be a powerful allay when solving this kind of problem.
How does it look like? What are the pros and cons of state machine usage? What are the things that we should be beware of? I will answer these questions during my talk, together with practical differences between the most popular implementation.
What you'll learn from this talk:
Theoretical background of the pattern itself
Major differences between most popular implementations
Practical examples implemented in all examined libraries
This talk was given at the Dutch PHP Conference in 2021, organised and hosted by Ibuildings. Visit https://phpconference.nl or https://ibuildings.nl for more information.
Watch video DPC2021: A short tale about state machine - Łukasz Chruściel online without registration, duration hours minute second in high quality. This video was added by user Ibuildings Dutch PHP Conference 03 August 2021, don't forget to share it with your friends and acquaintances, it has been viewed on our site 283 once and liked it 8 people.