💡 Learn how to design great software in 7 steps: https://arjan.codes/designguide.
In this video, I revisit the command pattern and show you one change that makes this pattern really flexible: going from the state being the ground truth to the transactions being the ground truth.
The code I worked on in this example is available here: https://github.com/ArjanCodes/2021-command-transactions.
Part 1 of this miniseries: https://youtu.be/FM71_a3txTo.
🎓 ArjanCodes Courses: https://www.arjancodes.com/courses/
🔖 Chapters:
0:00 Intro
1:02 Recap of last week's example
2:45 States vs. transactions
4:05 Using transactions as the ground truth
10:23 Simplifying the undo/redo mechanism
12:02 Changing the balance value to a cache
15:03 More examples of transaction-based systems
#arjancodes #softwaredesign #python
Continue this lesson in the app
Install CourseHive on Android or iOS to keep learning while you move.