• CoderSupreme@programming.devOP
      link
      fedilink
      English
      arrow-up
      4
      ·
      1 year ago

      Is there any way of enforcing the use of type hints? I just feel like even when I use them I forget about them most of the time and in that case they are not very useful.

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

      I was using python for quite a bit, but don’t like how cumbersome their types are, I really fell in love with nim when I was looking for alternatives, it’s an underdog, but personally I really like the langauge.

      • confusedbytheBasics@beehaw.org
        link
        fedilink
        English
        arrow-up
        1
        ·
        1 year ago

        nim looks good at a glance. I tend to stick with marketable programming languages so there are so many I don’t know about. I personally think that using the optional strong typing features are enough to make Python a joy to use. But yes, other people’s code can be cumbersome.

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

          For me it depends on the size, for small stuff like 1000-2000 lines of code that mainly I just work on alone, something like python is okay, if it is something longer, I miss types a lot.

          The thing is nim is more than just a typed python, it just works really well, I’ve had a lot of fun with it the two or so years that I’ve used it.

          But then again, I have a lot of fun testing out different languages, and don’t care about marketability, since I’m just programming as a hobby, and not as my profession, right now I’m playing around with picolisp, and it’s pretty fun :)

          • confusedbytheBasics@beehaw.org
            link
            fedilink
            English
            arrow-up
            1
            ·
            1 year ago

            Fun stuff :)

            Part of what make Python amazing is pip and everything that’s already been built. For a strongly typed and statically typed language with a large and growing ecosystem I’m drawn to Rust even though I don’t think it’s pretty.

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

              Aww, the hype got to ya… yeah, seeing it again and again, at least don’t do like everyone else who are starting to shill for the language without even having tried it. I’m just tired of rust activism, so tired.

              • confusedbytheBasics@beehaw.org
                link
                fedilink
                English
                arrow-up
                1
                ·
                1 year ago

                What you call hype I call a strong and growing ecosystem. ;)

                Honestly it’s been fun chatting with you. I think we are sort of opposites. You seem to like hobby languages. I like well used languages. You are tired of hearing about what’s popular. I’m excited about other programmers being excited.

                I am curious what turned you off when you were actually using Rust. Or did you mostly lose interest because other people endorse it?

                • sotolf@programming.dev
                  link
                  fedilink
                  English
                  arrow-up
                  2
                  ·
                  1 year ago

                  I was excited by rust, back when it used sigils instead of box and other keywords, it was an exciting language, I had some fun with it, but it wasn’t ready yet, so I went having fun with some of the languages in its family (ocaml, F#) And when I went back to rust some years ago to write a little tool for myself (https://codeberg.org/sotolf/tapet-rust) to try it out, and it was really cumbersome, and ended up rather slow. I really don’t like the rust syntax, and yes, that is kind of shallow, but there are so many bad choices, like a ; not being there rather than a return, it just doesn’t work for me. Error handling is decent, just that it’s syntactically cumbersome unless you use a package like anyerror, there are packages, so many packages, and what you wanted to make that is just a small tool now has 2 Gb + of build artifacts. I later found out about nim, and rewrote the tool in it, and got a more stable faster tool in a 3rd less code (https://codeberg.org/sotolf/tapet-nim) And the way to work in nim just fits me so much better.

                  The thing about the rust pushing people (They are funnily enough mostly people that haven’t really used it for much yet, but went into the hype) is not that they are exited about a language, sure I can get that, it’s the way they are pushing it, they talk down about other languages, demand people rewriting things in a language they are exited about, I don’t like the slow compilation and the huge stuff. It’s just not me. Don’t get me wrong I know it’s a good language, just too low level for what I (and most people really) need and it getting pushed for places where it’s not really suited, I don’t really think it’s a good thing. There is also this push for cleverness in their libraries and code, and cleverness in code is always a red flag to me. So it’s not you rust, it’s me.

                  • confusedbytheBasics@beehaw.org
                    link
                    fedilink
                    English
                    arrow-up
                    2
                    ·
                    1 year ago

                    This resonates with me. I love all the packages but yes the gigabytes downloaded to build something and the sheer time taken is not fun at all. Syntax is ugly IMO as well. It’s still my go to for strongly and statically typed languages in spite of everything though. Maybe you’re right about the hype train hitting me. :)