• zalgotext@sh.itjust.works
        link
        fedilink
        arrow-up
        0
        ·
        2 years ago

        Nah, Python 2.7 got way more support than it ever deserved because people just refused to switch to 3. Hell, people were starting new python projects on 2 after 3 came out.

      • smeg@feddit.uk
        link
        fedilink
        English
        arrow-up
        0
        ·
        2 years ago

        Depends entirely what tests you’re automating. Java codebase? Probably Java tests too. Anything web? Tests will be JS too, etc.

        • Omgpwnies@lemmy.world
          link
          fedilink
          English
          arrow-up
          0
          ·
          2 years ago

          Web testing is also done in python. Selenium has support in all major Python test frameworks. I’ve done SE-only tests in Robot, hybrid SE/Python using BDD with Behave, etc.

          Unless I’m testing a language-specific API, I’m probably going to use Python…

          • smeg@feddit.uk
            link
            fedilink
            English
            arrow-up
            0
            ·
            2 years ago

            I’m guessing that’s because you’re a python developer though. If you’re a frontend developer who knows JS then why wouldn’t you use that for your tests? (Apart from the fact that JS is horrible, but you’ve already accepted that suffering by becoming a web dev)

            • Omgpwnies@lemmy.world
              link
              fedilink
              English
              arrow-up
              0
              ·
              2 years ago

              I’m a test automation developer, I’m not necessarily bound by the platform that the application is written in unless I’m writing white-box tests.

    • frezik@midwest.social
      link
      fedilink
      arrow-up
      0
      ·
      2 years ago

      For about the first five years of its life, it was eclipsed by Perl. That’s about it. I don’t think anything will ever unseat Python as too many people’s first and last language.

      • SpaceNoodle@lemmy.world
        link
        fedilink
        arrow-up
        0
        ·
        2 years ago

        Surely not in the immediate future, but there will surely be a day when Python dies. Remember that BASIC filled that role for far too long.

        • frezik@midwest.social
          link
          fedilink
          arrow-up
          0
          ·
          2 years ago

          BASIC was meant as a teaching language. Python is a real language that’s simple enough to be a teaching language. It also runs the same dialect on every machine, which BASIC never did.

          Being the second best language at everything, it gets used for everything because people don’t want to learn the first best in any given niche. Python isn’t the best choice for numeric applications, but with NumPy, it’s adequate, so why bother learning R? Even if you knew R already, you’re going to run into a lot of Python code for that domain from other people. You’ll be swimming against the current, and why bother?

          Python will die when the sun does.

          • TechNom (nobody)@programming.dev
            link
            fedilink
            English
            arrow-up
            0
            ·
            2 years ago

            Python is one of my primary languages (the other one being Rust). But it honestly isn’t the easiest language to teach - I’m saying this from experience. There are so many concepts at play - name binding, iterators, generators, exception chains, context managers, decorators, … . I could go on and on. Teaching becomes hard because any basic question could become a journey into the rabbit hole of python semantics.

            Python is, however, a good first language for self learners. (Note: teaching vs learning). Python behaves intuitively. It’s designed in such a way that if you guess something about the language, you’ll probably be right.

      • RGB3x3@lemmy.world
        link
        fedilink
        English
        arrow-up
        0
        ·
        2 years ago

        Yeah. Look at any dev job listing and it’s all “Python, C++, or Java experience preferred”

    • EnderMB@lemmy.world
      link
      fedilink
      arrow-up
      0
      ·
      2 years ago

      Perhaps as the new hotness to web devs, but Python was a mainstay in science way before Django.

  • cheet@infosec.pub
    link
    fedilink
    arrow-up
    0
    ·
    2 years ago

    Metasploit and Gitlab are both my main uses of ruby, hasn’t made me think any better of it tho.

    • SpaceNoodle@lemmy.world
      link
      fedilink
      arrow-up
      0
      ·
      2 years ago

      And it’s a pile of shit.

      git is great. GitHub blows chunks. The only reason it’s still big is that it sucks less than any other single platform.

        • TechNom (nobody)@programming.dev
          link
          fedilink
          English
          arrow-up
          0
          ·
          2 years ago

          Git owes a lot of its popularity to github. Without it, there’s a good chance that mercurial would have taken over. In addition, the centralized workflow was what made both git and github popular. It simplified git usage enough to let a lot of novices get started.

          I’m in no way a fan of centralization that github represents. But I think a decentralized workflow using git was a lost opportunity. People complain a lot about the git-email workflow. But I see no reason why it couldn’t have become as easy as using github if the effort spent on github was spent on git-email tools and user experience.

  • invertedspear@lemm.ee
    link
    fedilink
    arrow-up
    0
    ·
    2 years ago

    Yesterday I would have argued that with the rails framework Ruby is a great way to rapidly develop a scalable application. Today I started having an intermittent failure in one of my API instances and when searching about it the only thing I could find was one obscure blogpost that boiled down to “yeah sometimes Ruby Ave active record just screws up the character set off a string” exact same string, different results. Excuse me Ruby? How the fuck can you sometimes screw up a character set? There should be no sometimes to any thing here.

    • frozen@lemmy.frozeninferno.xyz
      link
      fedilink
      arrow-up
      0
      ·
      2 years ago

      I like Ruby most of the time, but honestly, I’m not surprised at “sometimes” behavior from the language created by someone who, when asked for the formal definition of something in the language, said he’s “not really a formal kind of guy.”

    • FMT99@lemmy.world
      link
      fedilink
      arrow-up
      0
      ·
      2 years ago

      I mean I’ve been using ActiveRecord for the last 20 ish years and I’ve never encountered or even heard of this bug. Sounds like you came across an especially obscure one.

    • EnderMB@lemmy.world
      link
      fedilink
      arrow-up
      0
      ·
      2 years ago

      I spent a few years with Ruby, and my experience is that Ruby and Rails couldn’t be more different in terms of programming approach, philosophy, and nature. I don’t trust Rails fully, but I do trust Ruby.

    • puppy@lemmy.world
      link
      fedilink
      arrow-up
      0
      ·
      2 years ago

      Haven’t Spring Boot in Kotlin with jib and cloud integration caught upto this in terms of development speed?

  • Static_Rocket@lemmy.world
    link
    fedilink
    English
    arrow-up
    0
    ·
    2 years ago

    The only place I’ve seen ruby used extensively is in environments with a lot of regular expressions and string manipulation. Still not entirely sure why I’ve only seen it used there. The regex tools in ruby are nice but they aren’t nice enough to justify a language switch in my opinion…

    • v_krishna@lemmy.ml
      link
      fedilink
      English
      arrow-up
      0
      ·
      2 years ago

      It’s the part of ruby that replaced perl. For whatever eldritch horror perl was it was very, very good at doing text manipulation, and IME the only language to really match that experience was ruby.

      • BeigeAgenda@lemmy.ca
        link
        fedilink
        arrow-up
        0
        ·
        2 years ago

        I have never been a fan of Perl, it seems like a patchwork of different styles, and the same with Ruby.

        I have gotten the sales pitch for ruby and RoR so I know it has some strengths especially in web development.

    • EnderMB@lemmy.world
      link
      fedilink
      arrow-up
      0
      ·
      2 years ago

      Even in 2024, I say that Ruby is one of the best common languages available. While there are some weird syntax choices, and a lot of rope to hang yourself with when it comes to subjects like metaprogramming, it is a better Python than Python, in that it has a clean way to approach problems, and a simple structure to make coding clean and easy. The best part of Ruby is that its tooling is great at pushing best practices, like concise methods, good naming conventions, tests with single/aligned assertions, etc. I’ve taken many lessons from Ruby into other languages I use.

      Rails, on the other hand, is totally different. Today, Zed Shaw’s essay on Rails is as accurate as ever, in that many Rails shops have just ignored years of best practices on the web, and opt to do things their way because it’s “better”.

      • arc@lemm.ee
        link
        fedilink
        arrow-up
        0
        ·
        edit-2
        2 years ago

        It probably wasn’t a big deal when it was a niche project until Twitter imploded. Then all the public instances got overloaded with new users and the limits became obvious.

        A better design is Lemmy which is written in Rust so it has far more scalability. It’s compiled and because it’s tokio / actix based, it can also do a lot more stuff asynchronously so it’s not spawning thousands of threads to cope with concurrent requests.

          • Oliver Lowe@hachyderm.io
            link
            fedilink
            arrow-up
            0
            ·
            2 years ago

            @towerful I mainly program in Go, so when I see all that extra software I notice how much easier it is when I get to just rely on the Go runtime. It does a lot of the heavy lifting done here, but the resulting code is not as clean. Actually just today I read through Mastodon’s code to track down a bug in my in-progress ActivityPub service (in Go) and found the Ruby really easy to navigate!

            @programmer_humor