Jump to content

Talk:Module pattern

Page contents not supported in other languages.
From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by 31.221.41.210 (talk) at 11:27, 4 February 2013 (Added note to describe the real JS Module pattern.). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.

what is introduction

Module Pattern, JavaScript

The example looks like it was written by a Java programmer (which I was). It doesn't look like JavaScript.

It needs to be replaced. I don't have time at the moment.

There are good reasons NOT to use the common JavaScript idiom for this pattern. They should be discussed. — Preceding unsigned comment added by MartinRinehart (talkcontribs) 09:44, 23 November 2012 (UTC)[reply]

I completely agree with the above. This whole article is pretty poorly put together but the Javascript Module Pattern referrers to the use of closures to emulate public and private methods. Should referrence several different authors on this (Douglas Crockford, Eric Meyer, Chris Heilman, Tim Huegdon etc.).

I'll try to update this later. Andrew Phillipo