Skip to main content

Posts

Showing posts with the label emberjs

Introducing ember-data

Model objects, defined by the ember-data library abstracts away the complexities involved with handling the communication with the server, serializing, as well as de-serializing of the response received from the server. In order to define your ember-data model object, you just need to extend the DS.Model object present in ember-data module as follows: Models form the core of any MVC design pattern as they describe the core business domain at hand. In Ember.js, every route has an associated model that describes the business domain that the route needs to work on. Almost all of the examples that we have seen so far operate on the static data that is returned from the model property of the routes. But most of the times the data that needs to be operated upon is not static and is fetched from a remote server. Traditionally we have used jQuery or plain JavaScript to fetch the data from the server, using AJAX calls and then using those returned JSON objects as models in our application. This...

Ember.js Object Model

JavaScript is a multi paradigm dynamic language that supports all of object-oriented, procedural, and functional styles of writing code. This makes it one of the most powerful, as well as the most misunderstood language of all times. Often one aims to write code that is modular, extensible, and testable. But not everyone is able to write good quality code because it requires deep understanding of the language, design principles, as well as discipline to write code that consistently follows a particular school of thought. Ember.js framework helps in creating applications which are highly modular, extensible, and can be tested easily, and the Ember object model lies in the heart this framework.
Ember.js Talk @ JS Channel Bangalore 2014 . The day when i shared the stage with Douglas Crockford Himself.