• livingcoder@programming.dev
    link
    fedilink
    arrow-up
    30
    ·
    9 months ago

    When I learned Python I thought that not having a statically typed language was the way to go, but then it just became an issue when I was trying to ensure that everything was at least something like what I was expecting. Going back to statically typed languages even harder with Rust has been a dream. I love it.

  • CanadaPlus@lemmy.sdf.org
    link
    fedilink
    arrow-up
    15
    ·
    9 months ago

    Eh, strict typing makes debugging way, way easier. Saint Grace brought us compilers for a reason. If all you have is assembly, you should start writing one.

  • xthexder@l.sw0.com
    link
    fedilink
    arrow-up
    14
    ·
    9 months ago

    For NASA, data types don’t matter when you’re programming Voyager 1 and 45 years later it gets hit by an energy burst causing 3% of the RAM to become unusable, and it’s transmitting gibberish. It’s awesome they were able to recover it.

  • garlicandonions@lemmy.world
    link
    fedilink
    arrow-up
    7
    ·
    9 months ago

    It’s documentation. I’m a strickler to type in python so later when I look at my code and go what does this do it’s easier.

  • zenforyen@feddit.org
    link
    fedilink
    arrow-up
    1
    ·
    9 months ago

    Python with type hints and mypy and ruff = <3

    Large Python codebase without types = nightmare

    • smiletolerantly@awful.systems
      link
      fedilink
      arrow-up
      1
      ·
      9 months ago

      I’m too lazy to insert the “look what they need to mimic a fraction of our power” meme here, so… Please imagine it instead.

      I’m switching jobs in a couple of months, and I am SO glad to be leaving a (very well maintained!!) python codebase with type hints and mypy for a rust codebase.

      It is just not the same.

  • HStone32@lemmy.world
    link
    fedilink
    arrow-up
    1
    arrow-down
    1
    ·
    8 months ago

    Data types do matter, and someone’s got to declare them at some point, or else your compiler won’t know how to intepret them. It’s just a question of who should be doing the declaring: you, or a parser algorithm? Personally, I don’t like things being done for me.