-
Book Overview & Buying
-
Table Of Contents
Hands-On Software Engineering with Python - Second Edition
By :
This chapter has taken an in-depth look at several options for representing application or service data in a consistent fashion within the code itself. Each of these options provides assurance that, provided that the code is actually used, the data that the code is working with will be validated according to any constraints associated with it. That assurance holds for data that comes from user input through the API, and that those constraints and requirements — the data contract for those objects — can be documented in a common, industry-standard manner.
Those data contracts can also be applied to reading data from and writing data to a back-end data store. The fact that a standard schema document can be generated for them also means that the data structure that will be persisted is a known quantity, though no investigation has been done yet into the mechanics of how that data will be read and written. That will be the next chapter’s primary focus...