4 ms·
The excellence of this article has caused me to reevaluate my attitude towards Smashing Magazine. I formerly knew it as a source for "50 Sweet Free Wordpress T
by dpritchett 17y ago
The excellence of this article has caused me to reevaluate my attitude towards Smashing Magazine. I formerly knew it as a source for "50 Sweet Free Wordpress Themes" writeups and thus I largely avoided the place.
Really a good article, especially for a developer like myself who doesn't do all that much JavaScript.
- mootothemax 17y agoI'm really torn on my feelings about this article, it's mostly great, but the example of anonymous functions grates with me. I think it's a flawed example as it takes readable code and turns it into an unmaintainable mess, when the natural solution would be to use an object in the first place.
- Daniel_Newby 17y agoI agree. Just use proper objects and start internal member names with an underscore. Yeah, you cannot trust idiots not to misuse the internals, but they'll do worse with returning objects that close over function-local variables.
- smashingmag 17y agoOver the last year we completely re-evaluated the quality of our articles and we set up new quality standards and guidelines to meet the expectations of our readers. We are trying to get better all the time. And we are always glad to get constructive criticism and feedback from our readers. Thanks for visiting Smashing Magazine.
- apphacker 17y agoI would not call this article "excellent." His event handler doesn't use a closure and the first example is simply an object literal.