• stevecrox@kbin.social
    link
    fedilink
    arrow-up
    54
    ·
    1 year ago

    I am currently teaching python and JavaScript devs Typescript. Everytime they hit a problem they switch to any

    Sigh

      • OsrsNeedsF2P@lemmy.ml
        link
        fedilink
        arrow-up
        5
        ·
        1 year ago

        “Your crappy tests are failing again on my branch. I’ve commented them out until you fix them.”

        • Hudell@lemmy.dbzer0.com
          link
          fedilink
          arrow-up
          2
          ·
          1 year ago

          Sadly that sort of thing got so common where I work that I’ll run the tests three times before considering looking into the error message to see if it is something I broke.

          From time to time we take some days just to fix tests with inconsistent results, but there’s always more popping up.

    • Uplink@programming.dev
      link
      fedilink
      arrow-up
      7
      arrow-down
      1
      ·
      1 year ago

      That’s why I kinda don’t like Python and JavaScript anymore. Every time I want types for a library it’s gonna take me time to get it working. For every serious project I do, I use a strongly typed language.

    • jflorez@sh.itjust.works
      link
      fedilink
      arrow-up
      6
      ·
      1 year ago

      Just create a al Inter rule that rejects Any types and a pre-commit hook that refuses the commit if the linter fails. Sometimes the brute force approach is the best way to teach