Home » Author Archives: Veera Sundar

Author Archives: Veera Sundar

5 nifty JavaScript tricks that you may not know

Over the years, I have seen several JavaScript techniques that are particularly clever. Here’s a short list of 5 such techniques that I have been using again and again. I hope it inspires you too to rethink how you write certain piece of code. And, please note that some people may think clever coding impacts readability and they might be ...

Read More »

JavaScript Closure – examples

Earlier, I talked about the basics of JavaScript Closure. In this post, lets continue to explore Closure with the help of some practical examples. Before we begin, just to recap, Closure encloses function and the set of variables that were in scope of the function when it was declared. The variables inside the closure kept alive as long as the ...

Read More »

JavaScript Closures

Closures are very important topic in JavaScript that you must understand if you want to master the language. The earlier you know about Closures, the better you will write your JavaScript code. But, from my experience, most of the JavaScript beginners either do not understand Closure or do not know that the existence of the topic at all. So, in ...

Read More »

Javascript Prototype methods vs Object methods

In JavaScript, when you define an object, you can attach it’s functions in two different ways. Inside object’s constructor function, using this.func = function(){...} Using prototype. i.e. Obj.prototype.func = function() {...}. In both approaches, the function func() will be accessible to all the instances of your object. But which one is the best way to use? In short: Use prototype ...

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 »

Want to take your WEB dev skills to the next level?

Grab our programming books for FREE!

Here are some of the eBooks you will get:

  • PHP Programming Cookbook
  • jQuery Programming Cookbook
  • Bootstrap Programming Cookbook
  • Building WEB Apps with Node.js
  • CSS Programming Cookbook
  • HTML5 Programming Cookbook
  • AngularJS Programming Cookbook