Javascript Method Context – Part 3

When we talk about method Context we need to make sure we understand these concepts right. this object and method invocation. This is how you use method invocation. objectName.methodName() OR objectName[methodName]. Every time when we call any Function we set its context. It refers to the Global Object (window object in browsers) unless it is […]

Continue reading →

Javascript Scope- Part 2

When you hear “Javascript is a very flexible language”, know that same flexibility brings some complexity. Scope in Javascript is one of those complex subjects. If you don’t understand the concept of Scope in Javascript, sometimes your code will generate unexpected results. What is the SCOPE in Javascript? It is a context which your current code is running. There are […]

Continue reading →

Deeper Dive Into Javascript Functions – Introduction

Functions are Objects in Javascript. Functions have properties and methods. They can be passed around like any other Javascript objects and can also be defined at runtime. They are so powerful that we can write applications without needing any other Javascript built-in objects. We need to have a deeper understanding of  how Functions work in Javascript […]

Continue reading →

Backbone.js – Nested Views, Collections and Models

This article was originally published on 18 March 2013. In my last blog article I wrote about structuring your Backbone.js Models and Collections. I will continue from where we left. We will add the view part of the sample app. You can have a look at the whole code. It is on GitHub. I just […]

Continue reading →

Backbone.js – Structuring Nested Models and Collections

This article was originally published on 17 March 2013. If you are new to Backbone.js one of the first things you wonder is how to deal with nested data. You’ve already read or heard many times that Backbone.js doesn’t tell you how to organize your code. This is what it says about nested models and […]

Continue reading →