3 ms·
Other popular mainstream languages don't need a "leftpad" package in the first place.
by zozbot234 5y ago
Other popular mainstream languages don't need a "leftpad" package in the first place.
- onion2k 5y agoJS didn't need it either. A dev made the library, shared it, and some developers decided to use it. That's on them. Nothing about JS made it necessary.
- hombre_fatal 5y agoAlso, here's how to publish a package: mkdir my-package npm init npm publish
- colejohnson66 5y agoSame with Rust. Any language with a package manager has this issue. cargo new my-crate cargo login ... cargo publish
- ferdowsi 5y agoNode has a more robust standard library than Rust, which forces devs to download third party libraries to compute a regular expression or generate a SHA-256. For now Node is a richer target due to its popularity but the same issues will hit any language ecosystem that suffer the same flaws should they become popular.
- jhugo 5y ago"Third-party" isn't really correct for regex: https://github.com/rust-lang/regex https://github.com/rust-lang/regex (note the org) Rust's stdlib is deliberately small in order to allow it to have very strong stability guarantees.