• @ssfckdt@lemmy.blahaj.zone
      link
      fedilink
      0
      edit-2
      6 days ago

      cries in left_pad

      It’s kind of astonishing how many people leaned on that library just to add fucking spaces to strings

      • @boonhet@lemm.ee
        link
        fedilink
        06 days ago

        It should be in the standard library anyway. Why the hell is it not?!

        I mean yeah, I can write my own function to do the same thing and probably I’ve done it at some point in some coding exercise as a beginner, but this seems like such a common thing to use, it should be in the standard library of any sane language.

        • @CXORA@aussie.zone
          link
          fedilink
          English
          05 days ago

          It is, as padStart, which makes the number of packages using leftpad even more incomprehensible

          • @boonhet@lemm.ee
            link
            fedilink
            04 days ago

            Brb changing a million libraries on npm to use padStart instead of left-pad and removing the dependency

    • Elvith Ma'for
      link
      fedilink
      06 days ago

      Help, Debian has libbutton only in 1.4.3 and libdosomething is not in my repo. I compiled libdosomething from source, but now it needs libbutton >= 2.4.1 and compiling that version of libbutton fails, as my GCC and make are too old and incompatible!

      I already tried it on my other PC, but that isn’t based on glibc, which makes all these dependencies even worse…