Talk:Module pattern

Latest comment: 10 years ago by APerson in topic Disturbing content percentage

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 (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 — Preceding unsigned comment added by 31.221.41.210 (talk) 11:27, 4 February 2013 (UTC)Reply

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