Skip to content

Developers' Notes

Hsuan Ting, Lu edited this page Aug 22, 2019 · 2 revisions

Dev Comments

file.py

class DataFile

Responsibilities:

functions that alter something is responsible for writing-back the changes made

functions that read something is responsible for updating the private groups before returning objects

Nasty Stuff Devs Should Take Notice Of

File-Synchronization

now that every property-read updates the file object first before returning anything, devs should keep in mind that the implicit __update() function call embedded inside WILL RESET EVERYTHING THAT HASN'T BEEN WRITTEN-BACK.