News for hackers. Stuff that matters.
Re:Javascript: is 'this' a code smell? by gcb on Friday November 05, 2010 @05:12AM (#1872524)
i simply avoid writing "new" in javascript. ever. well, unless its for Date.

if i really need OO, i use YUI and forget about most javascript caveats. Everything is just too 'wrong' to keep track in your mind.

Re:Javascript: is 'this' a code smell? by bni on Friday November 05, 2010 @05:34AM (#1872558)
Everything felt wrong when I started programming in JS for real about a year ago, but now I would say I understand most aspects of it, and can keep track. Im still not ready to let go of classes and classical inheritance though. Not sure if I ever want to.
Re:Javascript: is 'this' a code smell? by ichverstehe on Friday November 05, 2010 @08:38AM (#1872891)
Take a look at Io. It does prototypes properly. And they are, in fact, pretty nice to work with. I wouldn't mind getting rid of classes in my day-to-day life.