this post was submitted on 16 Sep 2024
723 points (97.4% liked)

Programmer Humor

32361 readers
425 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
[–] dudinax@programming.dev 59 points 1 month ago (5 children)

Best scientific packages in the open source by far, a library for everything, everybody knows it. Works on all kinds of systems. Available by default in many OSs.

You might not like it, but you can't leave.

[–] azimir@lemmy.ml 46 points 1 month ago (2 children)

The summary that I liked from the last post was "python is the second best language for everything". There's always something specialized and better for every given job. But, if you want one tool that'll do a solid job everywhere, python is your go to.

[–] toastal@lemmy.ml 23 points 1 month ago

I literally used to say this last decade, but as I grew experienced with more languages/paradigms/systems, it became 3rd best, then 4th, until I realized it actually not really great at anything other than there is an large ecosystem around it (wildly varying in quality). To some that might be enough, & going outside what you know isn’t typically the most wise thing to do, but it’s not particularly simple, or readble, or performance, or composable, or offering great patterns. Anything that used Python in Nixpkgs tend to be the most unreliable software for actually building & using.

[–] CanadaPlus@lemmy.sdf.org 4 points 1 month ago* (last edited 1 month ago)

I don't think that's quite right. It's more like if you have to choose a language before you know what you're doing, Python is the best choice. For anything large enough it's multiple places down the list, but you really don't want to have to learn Rust and possibly reinvent wheels for your quick boilerplate hack.

[–] LANIK2000@lemmy.world 15 points 1 month ago

Can't speak for the science libraries as I've never used em, and I'll gladly just blindly accept that as truth, but for everything else it's always a pain in the ass. For being designed to "run on anything" it sure is funny that 90% of the time I download a python app it doesn't fucking work and requires me to look up and manually setup a specific environment for it. Doesn't help that the error messages are usually completely random and unrelated to this...

I always dread when some fucking madman makes the installer for their app in python, knowing it'll probably fail... God forbid it's a script that's supposed to modify something else. Always a good time for reflection upon the choices that led me to this point.

Even my old scripts I kept around for sentimental value. Half of those don't work either, and I can't be bothered to figure out what version I made em for.

I tried my best to scrub python from my pc out of principle, but as you say, it's soo common my distro uses it as a dependency, fucking bullshit!

[–] ftbd@feddit.org 6 points 1 month ago (1 children)
[–] Kichae@lemmy.ca 2 points 1 month ago

Is great until you need a job. It solves the 2 language problem right up until you're working with others.

[–] menemen@lemmy.ml 4 points 1 month ago (1 children)

Is it better than R? I am not so much into python (too embedded in R).

[–] dudinax@programming.dev 2 points 1 month ago (2 children)

I guess I don't know. Whenever something tempts me to R, I quickly find that Python's got a good-enough solution.

[–] menemen@lemmy.ml 3 points 1 month ago

Same for me with python, I always fall back to R after 10 minutes of trying to do it in python. :)

R is better if you want some very specific, niche statistical packages.

Python is better if you want to combine statistics with any other compute process.