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

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

How To Create A Model In Dry Pattern With Help Of Flow.js (for Async Calls) In Node.js?

For example, function user(){ flow.exec( function(){ call a; }, … Read more How To Create A Model In Dry Pattern With Help Of Flow.js (for Async Calls) In Node.js?

Slight Variation Of The Revealing Module Pattern

Is it good practice to use, instead of this Revealing Module Pattern ... var MyModule = ( function(… Read more Slight Variation Of The Revealing Module Pattern

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

Replace Switch With A Better Pattern (javascript)

I have to upgrade my app to display pages based on a users type and role properties. Currently I em… Read more Replace Switch With A Better Pattern (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

How To Avoid Duplicate Code For Constraint Validation In The Model And View Of A Mvc Web App?

Integrity constraints should be defined in the model classes of a MVC application since they are pa… Read more How To Avoid Duplicate Code For Constraint Validation In The Model And View Of A Mvc Web App?

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