▲ | OtomotO 3 days ago | ||||||||||||||||||||||||||||||||||||||||
It simply depends on what you need. I am gladly writing my own left-pad. I am gladly using something like three.js if I need it. The problem are the extreme stances. Don't add any dependency is as stupid as pulling in dependencies for every second line. | |||||||||||||||||||||||||||||||||||||||||
▲ | lukan 3 days ago | parent | next [-] | ||||||||||||||||||||||||||||||||||||||||
My point was, that in the js/node universe - the extreme stances seem to be the default already. (Unless the LLM is heavily biased towards certain code, maybe because blog entries promoting their libary got too much weight, but looking at a random js source of a webpage - they do mostly ship tons of garbage). | |||||||||||||||||||||||||||||||||||||||||
▲ | wizzwizz4 3 days ago | parent | prev [-] | ||||||||||||||||||||||||||||||||||||||||
Please don't write your own left-pad. It's built into the standard library, under the name (String.prototype.)padStart. | |||||||||||||||||||||||||||||||||||||||||
|