• pixelscript
    link
    fedilink
    English
    arrow-up
    8
    arrow-down
    1
    ·
    9 months ago

    This is a tremendous amount of cope. Implying there are Lemmy users just lining up to contribute PRs if only it wasn’t written in Rust. Give me a break!

    If someone was competent enough to author code that’s fit to pull into a project like Lemmy, they’re more than capable of translating those skills to Rust. No language seeing modern significant use is so esoteric that a reasonably seasoned developer couldn’t make something competent in it within a week of starting to learn its syntax. Maybe a day, even, if the language you are trying to learn is highly similar to one you already know.

    • t3rmit3@beehaw.org
      link
      fedilink
      arrow-up
      1
      ·
      edit-2
      9 months ago

      If someone was competent enough to author code that’s fit to pull into a project like Lemmy, they’re more than capable of translating those skills to Rust.

      With time, perhaps, but why is someone going to do that as a prerequisite for a spare-time FOSS contribution? People tend to contribute to the projects they already have the skills for.

      No language seeing modern significant use is so esoteric that a reasonably seasoned developer couldn’t make something competent in it within a week of starting to learn its syntax.

      Knowing the minimal syntax of a language to get past compilation errors is not even remotely close to being “competent” in it. You need to learn the language’s structures, you need to learn how the compiler works, you need to learn the libraries that the FOSS project is using, you need to learn the security pitfalls for the language… The language used can be a HUGE hurdle to overcome.

      “You know Python and Javascript, so you can write competent C++ code that is FOSS-contribution-acceptable if you take a week to learn!” (inb4 memory management and pointers and templates and ‘oh no every input field I wrote is a trivial buffer overflow’…)

      • pixelscript
        link
        fedilink
        English
        arrow-up
        1
        ·
        9 months ago

        People tend to contribute to the projects they already have the skills for.

        People also tend to pick up new skills when they have a driving incentive to do so, like supporting a project they have a vested interest in seeing improved.

        You need to learn the language’s structures

        Most of the bread and butter ones have analogues in other languages you should readily understand. More language-unique structures are rare; the more niche they are, the lower the odds your ability to contribute in a meaningful way hinges on your understanding of them.

        you need to learn how the compiler works

        You really don’t, though? Modern compilers, particularly the Rust compiler, are designed to abstract away as much of the details of compilation as possible. If the project really does need to tickle the compiler a certain way to get it to build, it will almost certainly have a buildscript and/or a readme.

        you need to learn the libraries that the FOSS project is using

        This is true regardless of the language in use. I’m not sure why you brought it up.

        you need to learn the security pitfalls for the language

        I would imagine most of these language-specific security footguns are either A) so specific that you will never hit the conditions where they apply, B) are so blazingly obvious that code review will illuminate what you did wrong and you can learn how to fix it, or C) so obscure that even the project owner doesn’t understand them, so you’d be at minimum matching the rest of the codebase quality.

        Mind, I am not insinuating that one can simply bang out a whole new submodule of a project in an unfamiliar language with minimal learning time. Large contributions to large projects can be hard to make even when you’re a veteran of the language in use, as the complexity of the project in and of itself can be its own massive barrier. But not every contribution needs to be big. And for most contributions, I don’t believe the language is the most significant barrier to entry. It’s a barrier, sure. But not the biggest one.

        I’d wager it’s not having a significant impact on the volume of contributions to Lemmy in particular.

        • t3rmit3@beehaw.org
          link
          fedilink
          arrow-up
          1
          ·
          edit-2
          9 months ago

          This is true regardless of the language in use. I’m not sure why you brought it up.

          Because if you know Python, you know requests already. Or flask, or configparser, or itertools, or maybe even pyqt.

          Languages all have their own ‘most common libraries’, which add to the time it takes to learn how to be competent in that language. If a python dev tells me they know all the syntax, but have no clue what itertools or requests are, my eyebrows go up.

          There’s a lot of language-specific knowledge that needs to be learned before you’ll be competent in it, that people don’t even think about.