News for hackers. Stuff that matters.
Re:The Everything NPM Package by charlie0 on Saturday January 06, 2024 @04:18PM (#38895578)
I don't see how creating a definitive sorting library is stagnation compared to having 10 mediocre libraries that are all missing some sort of critical functionality.
Re:The Everything NPM Package by jddj on Saturday January 06, 2024 @04:25PM (#38895649)
Right. I'd be very surprised if anyone looks at languages with strong standard libs and says "I wish they had the kind of sorting I can pull in from npm"
Re:The Everything NPM Package by forrestthewoods on Saturday January 06, 2024 @05:43PM (#38896310)
Your argument seems to be "just write good code instead of bad code". My argument is "the best way for good code to exist is to enable and support multiple options". Because if you have only one option and it's bad then you're screwed with no recourse. C++ and Python have, imho, many horrible API designs and we're stuck with them forever. This is stagnation.

Rust has a good standard library and also a large community of libraries. Sometimes those community libraries get promoted to std because they're strictly better. Sometimes the std version of hashmap is slow because std insists on using a crytographically secure hash when 99.99% of use cases would be better served with a less secure but faster hashing algorithm.

Like many things in life the ideal scenario is a benevolent dictator that only makes good choices. In practice the best way to get something good is to allow for multiple choices.

<insert parable of pottery class graded on quality vs quantity>

Re:The Everything NPM Package by int_19h on Saturday January 06, 2024 @07:01PM (#38896907)
The problem with this argument is that JS also has many horrible API designs. That seem to be replaced by equally horrible API designs, just with a faster churn.

Meanwhile, the horrible C++ and Python API designs at least offer the needed functionality, even if the code looks ugly.

Re:The Everything NPM Package by spencerchubb on Sunday January 07, 2024 @12:22AM (#38898721)
Forgive me for nitpicking your Rust example but you can define your own hashmap that inherits from the standard hashmap, and give it a different hash function. I have done it.
Re:The Everything NPM Package by MetaWhirledPeas on Saturday January 06, 2024 @04:26PM (#38895655)
Because who is going to bother working on any packages if they risk rejection in the end? Have fun with your ______ package because it's never going to improve.
Re:The Everything NPM Package by hnlmorg on Saturday January 06, 2024 @07:56PM (#38897233)
There’s plenty of languages with vast standard libraries and which also have 3rd party libraries that offer the same feature as something in stdlib but more enhanced against a specific metric.

You see it in Go, Python, .NET, etc.

Re:The Everything NPM Package by watwut on Sunday January 07, 2024 @04:44AM (#38899879)
Also Java and Kotlin.