• sbv@sh.itjust.works
    link
    fedilink
    English
    arrow-up
    63
    arrow-down
    1
    ·
    2 months ago

    I love shitting on Python, but I feel like all those problems are present in libraries for other languages as well. There’s a tonne of that crap for JS/TS.

    Similarly, I find a fair number of Rust crates (that I want to use) have virtually no doc or inline examples, and use weird metaprogramming that I can’t wrap my head around.

    • The Bard in Green@lemmy.starlightkel.xyz
      link
      fedilink
      English
      arrow-up
      57
      ·
      2 months ago

      Are we living in a world in which the JS/TS ecosystem is the yardstick by which we measure well written code? I mean… Wait a minute! I figured it out! This is the Bad Place!

    • Pacmanlives@lemmy.world
      link
      fedilink
      arrow-up
      9
      ·
      2 months ago

      You should look at some old Perl or C code. I have even seen some shell code that makes me want to bash my head in till death with an IBM Model M Keyboard

    • leisesprecher@feddit.org
      link
      fedilink
      arrow-up
      4
      ·
      2 months ago

      I feel like there’s a very fine balance for the effort required to publish a package.

      Too easy and you get npm.

      Too hard and you get an empty repo.

      I feel like Java is actually doing a relatively good job here. Most packages are at least documented a bit, though obviously many are outdated.

      • expr@programming.dev
        link
        fedilink
        arrow-up
        3
        arrow-down
        1
        ·
        2 months ago

        Uh, there are an absolute fuckload of Java libs out there with nothing more than auto-generated garbage Javadocs.