this post was submitted on 22 Feb 2024
839 points (95.6% liked)

Programmer Humor

27193 readers
1034 users here now

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

founded 2 years ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[–] umbrella@lemmy.ml 188 points 2 years ago (5 children)

was python ever irrelevant?

[–] SpaceNoodle@lemmy.world 102 points 2 years ago (1 children)

Nope. This cartoon is horseshit.

[–] RGB3x3@lemmy.world 14 points 2 years ago

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

[–] EnderMB@lemmy.world 39 points 2 years ago

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

[–] frezik@midwest.social 33 points 2 years ago (1 children)

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 6 points 2 years ago (1 children)

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 16 points 2 years ago (3 children)

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.

[–] SpaceNoodle@lemmy.world 10 points 2 years ago (2 children)

You have absolutely no idea how much business code has been written in VB.

[–] CosmicCleric@lemmy.world 7 points 2 years ago

Or COBOL.

No language truly dies, while Capitalism exists.

[–] frezik@midwest.social 5 points 2 years ago* (last edited 2 years ago)

I do know, but that's off to the side of BASIC in general. In fact, VB syntax is barely recognizable as BASIC.

[–] Hector_McG@programming.dev 2 points 2 years ago

Being the ~~second~~ tenth best language at everything

FTFY

[–] technom@programming.dev 2 points 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.

[–] Omgpwnies@lemmy.world 5 points 2 years ago (2 children)

Python is the language of choice for most test automation

[–] SpaceNoodle@lemmy.world 5 points 2 years ago (3 children)

If I can't do it as a Bash one-liner, I'm using Python

[–] Omgpwnies@lemmy.world 3 points 2 years ago* (last edited 2 years ago) (1 children)

subprocess.Popen(["bash one-liner"], stdout=PIPE, stderr-PIPE, text=True)

[–] SpaceNoodle@lemmy.world 3 points 2 years ago* (last edited 2 years ago)
["bash", "one-liner"]
[–] fluxion@lemmy.world 1 points 2 years ago (1 children)

I use perl, but everyone hates me and would rather rewrite my little scripts in python than bother changing a single line

[–] SpaceNoodle@lemmy.world 1 points 2 years ago (1 children)

You're right, everyone hates you.

[–] fluxion@lemmy.world 1 points 2 years ago (1 children)
[–] SpaceNoodle@lemmy.world 1 points 2 years ago (1 children)

The good news is that you can stop using Perl at any time.

[–] fluxion@lemmy.world 1 points 2 years ago (1 children)

For quick data parsing you'll have to pry it from my cold dead hands im afraid

[–] SpaceNoodle@lemmy.world 1 points 2 years ago (1 children)

That could be arranged. I could bash you over the head with a python.

[–] fluxion@lemmy.world 2 points 2 years ago

It's a kind offer, but my head is far too hard

[–] Shareni@programming.dev 0 points 2 years ago

Grug use go because it easier, faster, and compiles to share with friends of Grug

[–] smeg@feddit.uk 0 points 2 years ago (1 children)

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

[–] Omgpwnies@lemmy.world 1 points 2 years ago (1 children)

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 0 points 2 years ago (1 children)

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 3 points 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.

[–] ICastFist@programming.dev -4 points 2 years ago

Maybe when 3.0 was new and created all sorts of incompatibilities with 2.x