3 ms·
The language itself is the problem. JS doesn't even have a standard library. If you look at the documentation you can't even tell what the complexity of the `sh
by edem 9y ago
The language itself is the problem. JS doesn't even have a standard library. If you look at the documentation you can't even tell what the complexity of the `shift` operation is in an `Array`. Java on the other hand has a very well documented stdlib with all the concurrent and non concurrent data structures and utilities you can think of.
Javascript is a crude tool and the fact that [it was created in 10 days](https://www.w3.org/community/webed/wiki/A_Short_History_of_JavaScript https://www.w3.org/community/webed/wiki/A_Short_History_of_J...) does not help it.
This language has a lot of compost as you say but one can't differentiate between refuse and pristine tools (the latter might theoretically exist) just by looking at it and no one has the time to analyze all the tools he might end up using since there are so many. So you take one which has the most stars on github (like I did with [graphlib](https://github.com/cpettitt/graphlib) https://github.com/cpettitt/graphlib)) then you realize that it is crap and you end up writing one from scratch.