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

Rxjs Nested Subscribe With Multiple Inner Subscriptions

Original promise based code I'm trying to rewrite: parentPromise .then((parentResult) =>… Read more Rxjs Nested Subscribe With Multiple Inner Subscriptions

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

Managing Sync And Async Functions In An Algorithm Call Stack

TLDR: must I use async and await through a complicated call stack if most functions are not actuall… Read more Managing Sync And Async Functions In An Algorithm Call Stack

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

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

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

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