Relative Content

Tag Archive for serialization

What’s a good way to make sure that locally serialized data can be deserialized in newer code?

Context: I’m working on an HTML 5 game without persisted state. Every time you refresh the page, you start at the beginning. People are requesting that they can start where they left off if they leave the page. I plan to implement this as Local Storage. The thing that makes apprehensive about this is a new kind of bug I’ll have to consider: If you come back and there’s a newer code, it may not be able to deserialize the storage.