Factory Bot is a fixtures replacement which can generate the needed records directly in the tests. Faker can be used to create fake data for these records.
In this episode, we look at creating ruby objects. Then we look at different ways of implementing memoization and how it can be used to speed up our classes.
The Observer pattern (also known as publish/subscribe) provides a simple mechanism for one object to inform a set of interested third-party objects when its state changes.