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

What Functional-pattern Is This? If Any?

I find myself over and over again, writing code like this, and is thinking. There must be a known p… Read more What Functional-pattern Is This? If Any?

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?

Encapsulation In Javascript Module Pattern

I was reading this link http://addyosmani.com/largescalejavascript/#modpattern And saw the followin… Read more Encapsulation In Javascript Module Pattern

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

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)

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"?