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, duration hours minute second in high quality that is uploaded to the channel Dutch PHP Conference 03 August 2021. Share the link to the video on social media so that your subscribers and friends will also watch this video. This video clip has been viewed 297 times and liked it 9 visitors.