4 ms·
> I’ve worked on production JavaScript apps for years and have never needed to touch the JS prototype system. I think that is similar to “why do we bother teac
by dspillett 5y ago
> I’ve worked on production JavaScript apps for years and have never needed to touch the JS prototype system.
I think that is similar to “why do we bother teaching χ in school, I've never used it as an adult”, where the answer is a mix of:
1. For the people it is useful to, it is very useful. Those that may later be building frameworks rather than using them for instance, to save them reinventing wheels, or those coming from other languages who might otherwise have more trouble reasoning with JS as they try to use it exactly like they've used something else.
2. For the people it isn't directly useful to, at least a vague understanding of what goes on can be useful if only because you need some knowledge to know if you need to care.
3. For everyone else, perhaps myself included though I'm probably more in group 2, you taking a hit to your learning time is a sacrifice well made to make sure the people who do find it useful get it!