Writing safer data stores
We will learn helpful best practices to keep in mind when creating data stores in the upcoming sections. These best practices will assist us in the small chance that something goes wrong, which hopefully occurs as infrequently as possible! However, even though it might not occur as often, we still need to prepare for when it happens.
In this section, we will expand on our knowledge about saving tables and dictionaries by learning how to cache data. After that, we will improve our data stores by making our data stores autosave. We will also learn how to improve our error handling by implementing retries. Once we understand this, we will learn more about the limitations that data stores have.
The previously mentioned improvements will greatly improve the quality of our data stores. However, all these improvements will make our scripts very lengthy. If we were to have multiple scripts that handled our data stores, we would have a lot of duplicate code....