(Replying to PARENT post)

Because JS had a very poor stdlib and attracted people that had little to no experience in best-practices in older languages

Hence left-pad. And this pet-peeve of mine https://nodejs.org/docs/latest/api/process.html#processargv (who cares about the node fullpath in argv[0]?)

πŸ‘€raverbashingπŸ•‘3yπŸ”Ό0πŸ—¨οΈ0

(Replying to PARENT post)

Why oh why do people cite left-pad like this as an example of package bloat? It’s functionality was so valuable it was included in ECMAScript 2017!

The problem with left pad was a security one, not a package bloat one.

πŸ‘€SpeedilyDamageπŸ•‘3yπŸ”Ό0πŸ—¨οΈ0