• RGB3x3@lemmy.world
        link
        fedilink
        English
        arrow-up
        15
        ·
        9 months 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
      41
      ·
      9 months ago

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

    • frezik@midwest.social
      link
      fedilink
      arrow-up
      40
      arrow-down
      1
      ·
      9 months 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
        10
        arrow-down
        2
        ·
        9 months 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
          21
          arrow-down
          3
          ·
          9 months 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
            4
            arrow-down
            2
            ·
            9 months 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.

      • smeg@feddit.uk
        link
        fedilink
        English
        arrow-up
        1
        arrow-down
        1
        ·
        9 months 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
          1
          ·
          9 months 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
            2
            arrow-down
            1
            ·
            9 months 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
              3
              ·
              9 months 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.

      • zalgotext@sh.itjust.works
        link
        fedilink
        arrow-up
        17
        ·
        9 months 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.