Zyzzyva app now loading and saving quizzes

Nov 14, 2011 11:50

Two days ago, I was freaking out because there is so much left to be done on the Zyzzyva app before the end of the year. There is still plenty to do, but this weekend I accomplished a lot. Except for when I was asleep, I've actually been bouncing around for the last 12 hours or so because I finished implementing loading and saving of quizzes in the ( Read more... )

iphone, zyzzyva

Leave a comment

cesarsalad November 15 2011, 10:47:32 UTC
I should move to Dropbox for syncing but keep waffling on it. One of these days my laptop is going to die.

I think Dropbox can detect conflicts, but I also think conflicts are very unlikely to occur, unless the user has no internet connectivity for certain crucial periods of time. For example, if they quiz on computer A, and then move to an area with no internet, and then stop quizzing and put the computer to sleep. Then when they start on computer B, it will automatically sync with Dropbox, but not the very end of the quiz, but maybe somewhere in between (depending on whether it considers the .db file to be open or not, it could be that Dropbox syncs only when you close Zyzzyva or end a quiz?) Then when computer A goes back online there will be a conflict.

I think the more complex thing will be how Zyzzyva handles starting a quiz WHILE the .db file is syncing. If it takes a while to sync for whatever reason, and you start a Zyzzyva cardbox quiz, will it be able to start with a half-synced file, or what? There might be some funkiness there. Of course I am thinking of the desktop version but this probably also applies to the iPhone version...

Reply

boshvark November 17 2011, 18:36:34 UTC
I would sure hope that their syncs are atomic... syncing to a temp file and verifying the contents with a checksum before actually overwriting the local file. This is an interesting thing to watch out for, though. I'll have to look into it.

Reply


Leave a comment

Up