5 ms·
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. Everythin
by gcb 16y ago
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.
- bni 16y agoEverything 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.
- ichverstehe 16y agoTake 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.