ECMA Script 6 variable declaration with var, let & const – let vs var

JavaScript (and some other loosely typed languages) is popular for having only one data type; i.e. var. We declare everything with var in JavaScript; even the functions. So, why there is a need to redefine few things about variable declarations? What are the new features ECMA Script 6 want to provide us in variable declarations?

Read More…

ES6 Playgrounds: Run and test ECMA Script 6 online, in terminal or using plugins

ECMA Script 6 is probably the most talked topics in the JavaScript world today. The feature set draft is almost frozen. Many of those features are appearing in the browsers slowly but steadily. Many blogs have already covered all those upcomming awesome features of ES6. But how to test, experiment and play with your ECMA

Read More…

What’s the best practice of JS namespacing? (C# like)

JavsScript is a loosely typed language which let you modify any of your objects anytime, anyhow, in whatever structure you want. It doesn’t ask you to structure your code. You can put everything in global namespace, override whatever variable you want. This is why namespacing your code is much more needed. What’s Namespacing… in JS?

Read More…

Mongoose vs mongodb native driver – what to prefer?

Mongoose or mongodb native driver, which one to use? This is one of the initial queries for a node-mongo developer; and probably one of the most important ones. Because one use Object Rational Mapping (ORM) and another Object Document Mapping (ODM); so chainging the driver later on in your project can immensly increase your work.

Read More…

Slide or drag any jQuery/bootstrap slider programatically

This article provides a hack to slide or drag any kind of slider or dragabble element (which is dependent on jQuery) programatically. This code snippet is going to be a normal jQuery code which will manipulate the position of the element itself. Code snippet: Explaining the code Firstly, we are creating a mousemove event explicitly.

Read More…

Customize MAC terminal to look colorful like ubuntu

The default MAC terminal looks very lame, doesn’t matter which theme you are using. As a developer you need visibility in the terminal; thus, things should be colorful like ubuntu. This article gives you proper solution for that without installing any custom theme. The article contains the following: A readymade snippet to change the terminal

Read More…

Explaining few strange behavior of setTimeout() with code snippet

Previously also we showed you few tricky behavior of JavaScript codes. Today also few more strange things you are going to observe. The following code snippets which describes JavaScript event loop will not only help you to improve your JS knowledge, but also can be useful for you to write logic. Snippet 1: Guess the

Read More…

Polymer tutorial: Scafolding and making the first app with polymer js

In part 0 of Polymer tutorial, we’ve discussed what Polymer and web components are and why do we need polyfills. In this article we will see how to make the boilerplate for a polymer app. And how we can develop a basic app using Polymer. Setting up Polymer Polymer has few dipendencies (as web components

Read More…