Home / Companies / PubNub / Blog / Post Details
Content Deep Dive

Building Real-time Sync Apps with Backbone.js

Blog post from PubNub

Post Details
Company
Date Published
Author
Michael Carroll
Word Count
1,422
Language
English
Hacker News Points
-
Summary

Backbone.js, a popular JavaScript framework, is used to create data-driven web applications that respond dynamically to real-time changes, as demonstrated by integrating it with PubNub’s JavaScript SDK. Inspired by the Programmer Competency Matrix, the post describes the creation of a miniature application that allows users to self-assess their programming skills, view aggregate scores, and receive real-time updates as others submit their scores. The application uses Backbone models, including Stat for aggregate score storage and Key for capturing user selections, and features a tabular UI where users can select their grades and submit scores, which are then synchronized across all browsers via PubNub. The dynamic update capability ensures that the Stat model is continually refreshed with the latest aggregate data, enhancing user experience in collaborative and multi-user interfaces, and the application can benefit from further improvements like centralized score data persistence to manage concurrent submissions effectively.