Why Is Chrome 36 So Popular With JavaScript Developers?

Friday Jul 25th 2014 by Developer.com Staff

The latest version of Google's browser has a feature called Object.observe() that solves a common development headache.

Earlier this month, Google released Chrome 36, and the new version of the browser has been a hit with JavaScript developers thanks to a feature called "Object.observe()." Because JavaScript separates an app's data structure from its interface, it can be difficult to make sure that data changes get reflected in the interface. Object.observe() is a low-level JavaScript API supported by Chrome that offers two-way data binding to connect the data and the interface.

Amjad Masad, a developer at Facebook, calls two-way data binding the "holy grail of JavaScript MVC frameworks." He explains, "When you have true data binding, it reflects automatically in the user interface without you putting in any 'glue' code in the middle. You simply describe your view and every time the model changes it reflects the view. This is why it’s desirable."

While Object.observe() could one day be an official part of JavaScript, for now it's only supported by Chrome.

View article

Mobile Site | Full Site
Copyright 2017 © QuinStreet Inc. All Rights Reserved