3 ms·
It is. For one thing, classes (or objects you 'new') are much cleaner in CS than any trivial implementation in vanilla JS. Splats, loops, string interpolation a
by pooriaazimi 14y ago
It is. For one thing, classes (or objects you 'new') are much cleaner in CS than any trivial implementation in vanilla JS. Splats, loops, string interpolation and comprehensions are like added bonus (they are technically syntactic sugar, but make thing so much easier, cleaner and more readable that it's worth using CS for these features alone). True, CS makes debugging a bit harder (though SourceMaps might make that a thing of the past), but as CS code is much cleaner and easier to read, stupid typos are less likely to happen and most of the time, bugs are logical not because you accidentally didn't put a semicolon there, or used ; instead of ,
- rimantas 14y agoIn my experience (I wrote substantial amount of CS code during last year) overhead for CS debugging is so small it is not even worth mentioning. In theory it looks much more serious than appears in practice.
- jlas 14y agoI think the 'stupid typo' argument is not really valid if you're using syntax checking (e.g. jshint/jslint) in your stack.