JavaScript Module pattern

  JavaScript module pattern is the one to start, if you are new to JavaScript design patterns. It’s very easy to build a module pattern with a closure and a self-invoking aka IIFE function. This pattern can be written using a normal function or function expression, in this article, we are going to use a

Configuring Python as CGI script using Xampp

It’s very easy to configure Python as a CGI script using XAMPP server. To configure Python as CGI, follow the below steps. Open your apache configuration file Search for: this line AddHandler cgi-script .cgi .pl .asp add .py extension at the end of this line (AddHandler cgi-script .cgi .pl .asp .py) Restart your apache server

The Comma Operator in JavaScript

The comma operator will execute the series of expressions and returns the last one. Let’s look at the below functions “print_hello()”, “print_world()” and “print_js()”. View the code on Gist. This code:

will execute all the three functions and returns the value of “print_js()” to the variable output.

React Frequent Pages Component

The “React Frequent Pages” component displays the freqently visited pages widget. This component can be customized such as the number of items to show and the look and feel. This is my first contribution to React JS community, please feel free to post if you face any issues while using this component. Installation


Top 11 new features of ES6

ES6 (ECMA Script 6) or ECMA 2015 is the latest version of JavaScript released in June, 2015. ES6 is having lots of cool new features which we are going to explore in the upcoming sessions. Lot of popular JavaScript frameworks such as Angular 2 and React JS are started using the ES 6 features. Currently

PHP style date formats for JavaScript

Developers who worked in PHP know the features of Date functions and formats. The following code will give an idea to implement a PHP style date formats in JavaScript. This class is not a complete solution, it has just only day formats, please extend it to month and year.

How to use this?

JavaScript Method Chaining

Method chaining pattern is very useful to call multiple methods on a same object. This design pattern is very popular in most of the Object Oriented Programming languages such as Ruby, Java, PHP and JavaScript. Nowadays most of the frameworks/CMSs uses Method chaining pattern including jQuery (JavaScript), YII (PHP) and Drupal (PHP) etc. Let’s have


Follow me

Popular posts