Skip to content Skip to sidebar Skip to footer
Showing posts with the label Design Patterns

Why Does The Facade Pattern + Revealing Modular Pattern "add Security"?

REFERENCE According to reference: Below is a more advanced version of the facade pattern that adds … Read more Why Does The Facade Pattern + Revealing Modular Pattern "add Security"?

How To Create An Object With Private Members Using Object.create() Instead Of New

EDIT: I figured it out from Bergi's answer in the end. Thanks Bergi. pubPrivExample = (functio… Read more How To Create An Object With Private Members Using Object.create() Instead Of New

How To Recognize An Area In An Canvas Via Javascript

This image is loaded in an html5 canvas. If a user presses at any point inside the square, I want t… Read more How To Recognize An Area In An Canvas Via Javascript

Singleton Pattern And Abstraction In Js

Although the example below exploits ExtJS, one can easily extrapolate to another framework. I am a… Read more Singleton Pattern And Abstraction In Js

Javascript Design Patterns: Abstract Factory Vs Concrete Factory

What is the difference between concrete factories and abstract factories? PS: I originally asked a … Read more Javascript Design Patterns: Abstract Factory Vs Concrete Factory

What Is The Functional Difference Between These Two Different Module Pattern Syntaxes

I see this syntax everywhere: var mod = (function(){ var pvtvar; var pvtfunc = function(){}; … Read more What Is The Functional Difference Between These Two Different Module Pattern Syntaxes