3 ms·
I've been working on following the good parts for my latest project. I've started to cringe any time people talk about the prototype or using "this"
by thealphanerd 14y ago
I've been working on following the good parts for my latest project. I've started to cringe any time people talk about the prototype or using "this"
- jashkenas 14y agoThat's unfortunate. Properly using prototypes and "this" is the only way to do high-performance JavaScript with objects. Get cozy with them -- they're useful.
- TazeTSchnitzel 14y agoIt isn't the only way, it's just that browser JS engines tend to be optimised for them.
- andybak 14y agoI believe your statement is therefore equivalent to the preceding one.
- stephenr 14y agoI cringe when people claim to be writing more than the most basic JS and aren't using prototypes.
- ahoge 14y agoIt's a style choice. You don't have to use classes and/or do anything with the prototype chain.
- stephenr 14y ago> It's a style choice No. max line lengths is a style choice. indenting with spaces vs tabs is a style choice brace position is a style choice Using prototypes and instances in JS is about using the right tool for the job.