Data: Facts that can be recorded and have implicit meaning
Data is one of the fastest and most rapidly growing areas within software.
From data (raw) was can find insights (information) that allow us to make decisions.
Data Layer: The part of the tech stack that provides persistence
Frontend Code
Backend Code
Data Layer
Browser
Server
Has State
Stateless
Has State
Browser Storage
Stateless
Data is only as powerful as you can store and access it. Study COMP3311 to learn more about efficient data storage.
There are 3 main ways to store data:
As you move down the list, barrier to entry becomes higher, but so does performance.
In COMP1531 we will only explore (2)
Persistence: When program state outlives the process that created it. This is achieved by storing the state as data in computer data storage
What is storage?
Most modern backend/server applications are just source code + data
A very common and popular method of storing data in python is to "pickle" the file.
Let's look at an example
pickle_it.py
unpickle_it.py