Talk:Module pattern
![]() | This article has not yet been rated on Wikipedia's content assessment scale. It is of interest to the following WikiProjects: | |||||||||||||
|
The Introduction
[edit]what is introduction
Module Pattern, JavaScript
[edit]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 (talk • contribs) 09:44, 23 November 2012 (UTC)
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.).
- http://yuiblog.com/blog/2007/06/12/module-pattern/
- http://nefariousdesigns.co.uk/javascript-module-pattern-variations.html
- http://christianheilmann.com/2007/08/22/again-with-the-module-pattern-reveal-something-to-the-world/
I'll try to update this later. Andrew Phillipo — Preceding unsigned comment added by 31.221.41.210 (talk) 11:27, 4 February 2013 (UTC)
Disturbing content percentage
[edit]It seems like most of this article's length is just code examples. Is there any way that the code examples could be modified to make them shorter? Alternatively, would it look bad if we put the code examples in expandable boxes? APerson (talk!) 23:28, 26 July 2013 (UTC)