this post was submitted on 16 Sep 2024
464 points (89.7% liked)

Programmer Humor

32710 readers
294 users here now

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

founded 5 years ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 124 points 3 months ago (2 children)

honestly i expected the fifth panel to be full of things like "GIL", "2to3", "virtualenv" "pip vs conda vs poetry vs...", "mypy", etc

[–] dariusj18 63 points 3 months ago (1 children)

Yeah, it's not about complexity things you can do with python, it's the complexity of getting it to run. That continues to be the biggest pain point for me.

[–] [email protected] 25 points 3 months ago* (last edited 3 months ago) (3 children)

This is why I refuse to work in production code bases in python, it’s a nightmare of build systems, linters, package managers (dear god help the poor soul who accidentally pip’d from pypi and not your companies artifactory instance), formatters, convoluted ci pipelines that always seem to fail, a series of “senior” devs that will make you redo everything because you wrote your own map (we don’t use functional programming here meme) instead of a for loop (can’t use list comprehension for “code readability issues”). Got to the point of just saying fuck it, I’ll write it in Scala or rust, SBT and Cargo god tier.

[–] SpaceNoodle 4 points 3 months ago (1 children)
[–] [email protected] 6 points 3 months ago* (last edited 3 months ago)

C++ is at least backwards compatible (for 99% of code anyway, yes I know about some features being removed, but that's an exception and not the rule).

[–] [email protected] 3 points 3 months ago (1 children)

Wait does python not have built in functional list comprehension? Even PHP has that built in at this point.

[–] Phrodo_00 10 points 3 months ago* (last edited 3 months ago) (1 children)

Python is probably the language that popularized them, if not invented them. They're saying the team doesn't like using them.

My take is that other than C++, where it's reasonable, forbidden language features are a smell for the team not having a healthy understanding of the language

[–] [email protected] 4 points 3 months ago

As per all too often, the functional programming world invented them. Haskell (and its ilk) usually has all the future cool stuff already. Then python picks it up, then it moves over to C#/Java, then C++ says "mee too"!

[–] grue 2 points 3 months ago

Ha, you haven't lived [in Hell] until you've tried to maintain a Jython build, with Python package dependencies (not just Java ones), in a production environment, in the 2020s.

[–] [email protected] 5 points 3 months ago* (last edited 3 months ago) (1 children)

Surprised not to see meta-classes or package management in the meme.

EDIT: clarification

[–] jacksilver 4 points 3 months ago (1 children)

Am I an idiot or isn't the "pip vs conda vs poetry" line talking about package management?

[–] _stranger_ 3 points 3 months ago

It is, and it's a valid complaint. Go and Rust have handled it differently than Python or JavaScript, and all of them have their faults and bonuses.