you are viewing a single comment's thread
view the rest of the comments
[–] 6 points 3 months ago (3 children)

https://en.wikipedia.org/wiki/Npm_left-pad_incident

For the uninformed. It still somehow both boggles my mind and makes 100% sense that people didn't just write this function when they needed something to pad strings.

  • source
  • parent
  • hideshow 3 child comments
  • [–] 4 points 3 months ago (2 children)

    Probably got put into a popular example and then everyone uses it because "that's how."

  • source
  • parent
  • hideshow 2 child comments
  • [–] 2 points 3 months ago (1 child)

    Huh... You know what that makes more sense than anything else I've come up with. I always just assumed it was lazy devs.

  • source
  • parent
  • hideshow 1 child comment