• gnus_migrate@programming.dev
    link
    fedilink
    English
    arrow-up
    3
    ·
    1 year ago

    A good language matters. A good type system matters. A good use of a good language with its type system, patterns, abstractions, ecosystem, and all it got to offer matters.

    Eh research shows otherwise. Rust eliminates defects for a very particular set of problems, but when it comes to logical correctness it isn’t better or worse than other languages. If those problems are prominent in your domain(such as you have to write a ton of concurrent code), Rust makes sense. Otherwise being well rested will have a bigger impact on the quality of your code than the best type system in the world.

    In terms of dev practices, the only practice demonstrated to have a consistent positive impact on code quality is code reviews. Testing as well, but whether it’s TDD or other kinds of testing doesn’t really matter.

        • BB_C@lemm.ee
          link
          fedilink
          arrow-up
          1
          ·
          1 year ago

          Eh research shows otherwise. Rust eliminates defects for a very particular set of problems, but when it comes to logical correctness it isn’t better or worse than other languages.

          Can you concede, at least to yourself, that you made ^ this ^ up?

          By the way, what you claimed “research shows” is so ridiculous that it’s hilarious that you wrote it while being serious.

          Hell, I cheekily mentioned Python and JS in particular because the former introduced type hints and the latter triggered creating TS as a saner shield.

          Btw, that wrongly-constructed URL wasn’t even an external one. We literally have web frameworks that make sure non-external URLs with invalid paths are impossible to construct. In other words, attempting to construct a wrong one would be a compile error.

          • gnus_migrate@programming.dev
            link
            fedilink
            arrow-up
            1
            ·
            1 year ago

            By the way, what you claimed “research shows” is so ridiculous that it’s hilarious that you wrote it while being serious.

            There is still no research that definitively shows that static types reduce defects more than dynamic types, this is a fact. Turns out we are incredibly bad at studying this, so I don’t know how you can say definitively that it is the case when even the people who study this for a living are not able to make that case.