RSS Feed

Posts Tagged ‘design patterns’

  1. JavaScript Singleton Design Pattern Demystified

    February 7, 2011 by Dusan Gledovic

    Singleton is one of the creational design patterns. It serve purpose of “restricting the instantiation of a class to one object”. (wikipedia)

    Because of its nature, JavaScript has different way of implementation of the Singleton Pattern than “traditional” object-oriented languages like Java, C#, PHP etc.

    (more…)