Re:Your World of Text, my current side project. Requires FF3...
by bdr on Tuesday August 04, 2009 @07:52PM
(#742456)
It's really simple. This was my first App Engine project. There's only one model, Tile, that has contents, namespace, and x/y coordinates. The contents field is a string representing the text in this tile. The namespace tells you what page the tile belongs to (e.g., /newsyc), and the coordinates are relative to the starting position. Namespace, x, and y are part of the keyname, so contents is the only model property. I don't create a tile until someone writes to that area.
I don't want to use cookies, but I'm thinking about implementing some kind of directions feature. ("Where am I?" "How do I get to X?") But I also want to keep the system really simple, so I don't know.
Re:Your World of Text, my current side project. Requires FF3...
by davepeck on Tuesday August 04, 2009 @07:58PM
(#742467)
I assume you only construct a tile if someone types in it; not if someone simply scrolls over it?
How large are the tiles?
Re:Your World of Text, my current side project. Requires FF3...
by bdr on Tuesday August 04, 2009 @08:27PM
(#742513)
Correct, and 8x16.
Re:Your World of Text, my current side project. Requires FF3...
by davepeck on Tuesday August 04, 2009 @10:47PM
(#742727)
Got it. I ask because the tile size will seem to directly impact the amount of data store contention (aka the number of db.TimeoutExceptions). It would be an interesting study to look at contention rates (percentage of failed datastore reads) vs. tile sizes when the app is under load.
(I also assume you make use of memcache, though I further presume that typing implies an immediate db put().)
(Also, could you use cookies to bring me back where I left?)