Before you start reading this post I recommend you to read Variable Scoping and Hoisting in JavaScript . In this post we will take a look on Scope Chain in JavaScript. Let us consider you have declare a variable globally as below, In above code variables are declared globally, in other words they are notContinueContinue reading “Variable Scope Chain in JavaScript”
Monthly Archives: September 2013
Get it right: null and undefined in JavaScript
Well, whenever I talk to developers, I find them in confusion about null and undefined in JavaScript. In this post I try to simplify understanding of null and undefined in JavaScript. To start with null is language keyword and undefined in value of a variable. Both evaluates to value that indicates absence of a value.ContinueContinue reading “Get it right: null and undefined in JavaScript”
Single Responsibility Principle in C-Sharp: Simplified
Let us start with understanding what is SRP? Single Responsibility Principle says every class should have single responsibility and all the responsibility should be encapsulated in the class. To explain it further assume you are creating a creating class to Calculate Salary. Now if you have two methods in class like below. Usually we canContinueContinue reading “Single Responsibility Principle in C-Sharp: Simplified”
Variable Scoping and Hoisting in JavaScript
Variable Scoping in JavaScript is quite different than other programming languages like C. In this post we will learn variable scoping in JavaScript. Simply putting, Scope of a JavaScript variable is within region of the program it is defined. So a variable defined inside function will have scope inside that function. Consider following code snippet,ContinueContinue reading “Variable Scoping and Hoisting in JavaScript”
Invocation patterns in JavaScript
In JavaScript you can invoke a function in four different ways. In this post we will take a look on various invocation patterns. There are four ways a function can be invoked in JavaScript. Four invocation patterns in JavaScript are as follows, Function Invocation Pattern Method Invocation Pattern Constructor Invocation Pattern Indirect Invocation Pattern FunctionContinueContinue reading “Invocation patterns in JavaScript”
Presented on Backend as a Service in Pune DevCon 2013
On 24th Aug 2013 I presented on Backend as a Service in Pune DevCon 2013. It was one of the premium event with more than 300 attendees and 25 speakers. I had an opportunity to present on Backend as a Service under Windows 8 track. I had a very humble audience of 30 people. IContinueContinue reading “Presented on Backend as a Service in Pune DevCon 2013”