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

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)

Design Pattern To Check If A Javascript Object Has Changed

I get from the server a list of objects [{name:'test01', age:10},{name:'test02', ag… Read more Design Pattern To Check If A Javascript Object Has Changed

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

How To Implement Apply Pattern In Javascript

What is apply invocation pattern in Javascript in reference to function invocation patterns and how… Read more How To Implement Apply Pattern In Javascript

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

Is There An Eclipse Plugin That Creates An Outline View For The "javascript Revealing Module Pattern"?

I like eclipse, and with some tweaking it can be used for javascript programming. There's synta… Read more Is There An Eclipse Plugin That Creates An Outline View For The "javascript Revealing Module Pattern"?

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

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?

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