News for hackers. Stuff that matters.
Re:JavaScript Things I Wish I Knew Much Earlier In My Career by dpritchett on Tuesday April 20, 2010 @11:38AM (#1279680)
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.

Re:JavaScript Things I Wish I Knew Much Earlier In My Career by smashingmag on Tuesday April 20, 2010 @03:00PM (#1280277)
Over 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.
Re:JavaScript Things I Wish I Knew Much Earlier In My Career by mootothemax on Tuesday April 20, 2010 @11:48AM (#1279711)
I'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.
Re:JavaScript Things I Wish I Knew Much Earlier In My Career by Daniel_Newby on Tuesday April 20, 2010 @04:34PM (#1280524)
I 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.
Re:JavaScript Things I Wish I Knew Much Earlier In My Career by apphacker on Tuesday April 20, 2010 @03:14PM (#1280309)
I would not call this article "excellent." His event handler doesn't use a closure and the first example is simply an object literal.