Read other posts on Node.js here In this post we will take a look on inheritance of objects in Node.js. We will learn to use utility module to achieve inheritance in Node.js. However keep in mind that you can write plain JavaScript to achieve inheritance in Node as well. You can use Object.create() to inheritContinueContinue reading “Inheritance in Node.js”
Author Archives: Dhananjay Kumar
Getting started with Node.js development in Visual Studio
Setup Environment on Windows machine for Node.js Development [Set up Sublime Text] Yes you love node.js. You love event driven development and yes multi thread is old fashioned now. Your new found love is ASYNCHRONOUS. Asynchronous everything, even reading file system. As all we know Microsoft loves Developers. So in Build they decided to giveContinueContinue reading “Getting started with Node.js development in Visual Studio”
Wish you Happy New Year 2014
I wish you Happy New Year 2014. I hope you had significant 2013 and I wish that you will have even better 2014. I had good 2013. I got opportunity to attend and present in many conferences all across globe. I hosted each month learning gathering for developers. Blogged on various technologies to educateContinueContinue reading “Wish you Happy New Year 2014”
Inbuilt Bindings in Knockout.js: Controlling Text and Appearance
Setting up Visual Studio 2013 for Knockoutjs Development Create your First MVVM based JavaScript App in two simple steps using Knockoutjs In simpler terms we can define Knockoutjs binding as a mechanism to establish relationship between view and ViewModel. View takes user action and pass the instruction to ViewModel. One of the most popular exampleContinueContinue reading “Inbuilt Bindings in Knockout.js: Controlling Text and Appearance”
JavaScript Functions is a Statement or Expression?
Answer of above question is JavaScript functions can be used either as statement or expression. JavaScript functions can be treated in different ways. They can be Expression Passed as value Returned as value Statement Functions in JavaScript can be Expression or Statement. Problem is in both flavour they look exactly same. So a function statementContinueContinue reading “JavaScript Functions is a Statement or Expression?”
How to access functionality from various JS files in Node.js
In this post we will take a look on working with different JS files in Node.js. To start with let us assume a scenario that you have several js files and you need to work with these js files and use functionalities from these files in server.js. In Node a JS file is a module.ContinueContinue reading “How to access functionality from various JS files in Node.js”
Can you answer these 10 basic Knockout Questions?
Q1. KO performs following operations Automatic Refresh Two way Binding Templating All of the above Q2. On which event bindings in KO fire notification Change event Update event On Any event None of the above Q3. Value of computed observable is determined at Time of creation Time of update Time ofContinueContinue reading “Can you answer these 10 basic Knockout Questions?”
Working with OS Module in Node.JS
In this post we will take a quick look on OS module in Node.js. OS module is to work with OS component. It provides some functionality to work with Operating System. Using this module you can get following information like below, OS target version Host name OS temp folder Total memory in system Free memoryContinueContinue reading “Working with OS Module in Node.JS”
Create your First MVVM based JavaScript App in two simple steps using Knockoutjs
Read all Knockoutjs posts here Setting up Visual Studio 2013 for Knockoutjs Development Okay purpose of this post is very simple to explain you why Knockoutjs. I will try to put it in simplest way that Why we need to work Knockoutjs. If you are not a begineer then probably this post may appear veryContinueContinue reading “Create your First MVVM based JavaScript App in two simple steps using Knockoutjs”
Events in NodeJS : Write your first event
Setup Environment on Windows machine for Node.js Development: Part 1 Let us simplify “Hello World” Node.js Example and EventLoop : Part 2 Each objects in NodeJS emit an asynchronous event. That event is handled by an object EventEmitter. EventEmitter is underneath every object. EventEmitter object, Takes care of event being emitted by Node object HandlesContinueContinue reading “Events in NodeJS : Write your first event”