Every industry is full of technical hills that people plant their flag on. What is yours?

  • Nibodhika@lemmy.world
    link
    fedilink
    arrow-up
    13
    ·
    23 小时前

    This is one of those things like a trick picture where you can’t see it until you do, and then you can’t unsee it.

    I started with C/C++ so typing was static, and I never thought about it too much. Then when I started with Python I loved the dynamic typing, until it started to cause problems and typing hints weren’t a thing back then. Now it’s one of my largest annoyances with Python.

    A similar one is None type, seems like a great idea, until it’s not, Rust solution is much, much better. Similar for error handling, although I feel less strongly about this one.

    • hawgietonight@lemmy.world
      link
      fedilink
      arrow-up
      1
      ·
      12 小时前

      I usually take these holiday weeks off to learn a new language or framework, and started to take a peek into Python, I had it on the back burner way too long. Got to the dynamic variable types and my heart sunk… I couldn’t continue.

      Maybe I should take a third attempt at Rust.

      • Nibodhika@lemmy.world
        link
        fedilink
        arrow-up
        2
        ·
        10 小时前

        Honestly modern python is not that bad because of the typing hints and checks you can run on them nowadays. Also it’s worth noting that python has very strong types, so it’s not illy willy magical types, and while it is possible to use it like that it’s normally not encouraged (unlike other languages).

        That being said, if you haven’t learnt Rust I strongly encourage you to read the book and go through the rustling exercises. Honestly while still a new and relatively nieche language, it fixes so many of the issues that exist in other languages that I think it will slowly take over everything. Sure. It’s slower to write, but you avoid so much hassle on maintenance afterwards.

        • Gagootron@feddit.org
          link
          fedilink
          arrow-up
          1
          ·
          9 小时前

          i hadn’t heard of the rustlings before. looks neat, might be what i need to finally learn rust properly