Keeping Your Clients ‘NSync - Node.js and Derby: The New Kids on the Block
My presentation for Pivotal Labs NY 4/3/2012 on Derby, the new multi-client synchronization framework made by Nate Smith and Brian Noguchi.
Code from demo at: http://github.com/ledwards/skyhopper
• Leave the browser idiosyncrasies alone • Build high-level abstraction on top of them • Client API (Javascript) • Server API (Ruby, or something less cool) Tuesday, April 3, 12
top = element.position().top + "px"; var left = element.position().left + "px"; var card = model.at(element); for (playerIndex in model.get('_game.players')) { card.set('position', { top: top, left: left }); }; } Tuesday, April 3, 12