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

Pub/sub Design Pattern Angularjs Service

I've been trying to use the answer here posted by Mark Rajcok angular JS - communicate between … Read more Pub/sub Design Pattern Angularjs Service

Javascript File Dependencies - Selective Load Resource Files & Prevent Duplicates

This might be more of a philosophical debate, but here is what I have: Two controls which share a … Read more Javascript File Dependencies - Selective Load Resource Files & Prevent Duplicates

Javascript Switch Within For-loop Break; Conflicts

I have switch nested with loop in JavaScript like: for (var i = 0; i Solution 1: That is exactly w… Read more Javascript Switch Within For-loop Break; Conflicts

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

Why Module Pattern?

I've read a lot of things about the module pattern. Ok It brings structure, private method, etc… Read more Why Module Pattern?

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

Javascript Namespace Pattern

I came across this JavaScript intricacy and was struggling to find the difference. Its about JavaSc… Read more Javascript Namespace Pattern

Trying To Concatenate All My JS Into One File And Needing Some JS Framework/pattern Type Advice

Just in case it matters, I use ASP.NET 3.5 with VB.NET. I have nested MasterPages and UpdatePanels… Read more Trying To Concatenate All My JS Into One File And Needing Some JS Framework/pattern Type Advice