Read: Class 04 : Data Modeling - Goorob-401-advanced-javascript/amman-javascript-401d1 GitHub Wiki
*CRUD - Basic Data Operations : -CREATE - Add a record to a data store -READ - Retrieve a record from a data store -UPDATE - Update a record within a data store -DELETE - Remove a record from a data store *Interfaces & Services – The “Repository” design pattern : “A modeling technique providing common access points in an API (i.e. the CRUD methods) that is agnostic to the storage medium and techniques.” *Implementation The specific means by which a data model interacts with a persistence layer (file, mongo, postgres, etc)
In the above example, this refers to the code in the methods that does the actual work. This can change, so long as the inputs and outputs of those methods remain the same. *Normalization and Validation Sanity checking data to ensure that it conforms to the modeling rules, integrity checks, etc prior to doing any operations with it.
We’ve written a module that does this … many database systems have libraries that do these tasks for you, in very consistent and predictable ways. It’s an expected layer of code safety that data services should provide.