Home » JavaScript » Backbone.js

Backbone.js

BackboneJS with Webpack: A lesson in optimization

Developing a large BackboneJS application presents a unique design problem. As developers, we like to organize our code so it is understandable, logical, and predictable. However, doing so can cause performance issues on the client side. In this blog I will discuss a handy tool I like to use for this purpose: Webpack. I’ll show it in action, how to use ...

Read More »

Understanding Backbone.js from the lens of a Java programmer

Let me start this blog in favor of backend or server-side programmers by making the following statement: “A server-side programmer (Java or similar) can understand nuances of javascript client or server-side frameworks or libraries much more quickly than an html developer”.  There are two key reasons behind the above statement: Client-side development is not limited to HTML/CSS rather it has evolved ...

Read More »

Backbone.js Events Example

The purpose of this tutorial is to provide basic understanding of backbone.js along with its components. We will be discussing that what backbone.js actually is and how it differs from other JavaScript libraries. In particular, we will be understanding its out of the box support for events with example. We will start from the very first step which is to set ...

Read More »

Introduction to the Backbone Query API

As a relatively “new” user of Backbone.js, I looked at different JSON querying tools that existed. At the time I was still struggling with using JSON as the data source and wrapping my head around the process for querying the data set that was contained in a large string. Coming from a Java and strong PL/SQL background in Oracle, I ...

Read More »

Why should we use server side in Backbone.js?

One of the challenges when building nontrivial Web applications is that JavaScript’s non-directive nature can initially lead to a lack of structure in your code. JavaScript is often written as a free-hanging and unrelated blocks of code, and it doesn’t take long before it becomes hard to make sense of the logic and organization of your own code. This becomes ...

Read More »

Communicating between views in Backbone

The backbone application that I am currently working on has a document section and a sidebar section.           To represent the above structure in Backbone, I came up with following views. ApplicationView – the container for the sub views. DocumentView – represents a current document being edited/displayed. SidebarView – shows relevant information for the document that ...

Read More »