- cross-posted to:
- programmer_humor@programming.dev
- cross-posted to:
- programmer_humor@programming.dev
I would recommend pdm and micromamba.
Is it the language’s fault that you want to solve complex problems?
Is it? No. Is it also my fault I am stupid? No.
You jest but it can happen when what the docs says doesn’t reflect the implementation. And also, that’s what we call bugs.
YES!
Very little of this is uniquely a problem in Python. It seems to me that your problem is with software development in general.
I used to love it so much more…
come into the light, my child. become an electrical engineer.
The same meme with “wiring and lights” at the top. Then you descend to motors, transformers delta-y phases, RC and RL circuits, op amps, BJT circuits, reverse bias what?, differential equations, and eventually signals and systems.
No, the dependency management in Python is a nightmare. There’s like a billion options for it.
Use pipenv and don’t think about it anymore.
What’s the difference? I rarely use Python and every time I do I have to relearn which tools are the go to ones. In Java it’s a little simpler, we really just have Maven and Gradle. They have their own problems, sure, what tool doesn’t, but the thing that annoys me about python is the quantity of tools. There often isn’t a clear winner.
Now, to be fair to python, a lot of the ones mentioned on this post are very specifically for data science use cases and not general purpose development.
My problem is with semantic whitespace
That’s really the part I hate the most. it just feels wrong
That’s the part I like the most. I don’t want to work on any code that isn’t properly formatted, and at that point why bother with curly braces, etc?
They help to digest the individual code blocks. My mind doesn’t digest whitespace the same way, it simply interprets it as formatting.
It’s also much more frustrating to edit imo since the formatter generally has no idea what to do with misaligned whitespace. I also find it frustrating that you can’t do multiline lambdas, last I used it.
I don’t know who needs to hear this, but Python, like most languages, can be as complex as you make it.
deleted by creator
Felt
Preach!
no i will NOT use more than one line in my scripts
Some people in the comments didn’t take it as tongue-in-cheek as I did. 😝
I thought this was really funny. That’s a good collection of toe stubs.
There is a lot of stuff to learn to be good at python but I still love it.
I think venv is the best because it’s built in. But I’m also not a Python dev.
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.
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!
😡
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.
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.
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.
Is it better than R? I am not so much into python (too embedded in R).
I guess I don’t know. Whenever something tempts me to R, I quickly find that Python’s got a good-enough solution.
Same for me with python, I always fall back to R after 10 minutes of trying to do it in python. :)
Julia?
Is great until you need a job. It solves the 2 language problem right up until you’re working with others.
The thing that annoys me the most is how it cares about whitespace/carriage returns. I remember back in college when I was taking a CS class, learning Python and writing the Code on a Windows PC, emailing it to myself, and then attempting to run the code on Linux. Before I learned about the carriage return conversions, I remember having to rewrite about 75 lines of code before I got it to run. 🤬
The syntax wouldn’t work without consistent spacing
Looks like user error
I call it a layer 8 issue
Of course… All the issues we face are user errors.
This is so true & unfortunately everyone keeps telling beginners to start at Python
But
and
instead of&&
means beginner friendlyEmbrace your forefather ALGOL: 🤚
and
,&&
👉∧
While being controversial, rye is very good for small personal projects. It does pretty much everything from python version management to project scaffolding.
they are also working on a follow-up, uv. not really a fan of writing tooling in another language but it works really well.
Coming from c# then typescript and nextjs, rye feels very intuitive and like a nice bridge / gateway drug into python.
I know this may be an unpopular opinion on lemmy, which leans so heavily towards Linux and FOSS, and I’m a Linux user myself but….
I actually really like C# and .NET (the modern cross-platform version anyway).
.net from core 2 was awesome. From 5 onwards it’s been beyond amazing!
That link is broken…
They didn’t include https so the link doesn’t know what protocol it’s meant to open with
I didnt upvote the other python-beginer friendly meme cause it wasn’t accurate. But this one is on point.
Hey, no pointers!
oh my fuck. circular imports.
I set out to create a Discord Bot in Python, then gave up trying to use an easy “proper” server-side language and just did it in TypeScript
Oh god, I feel this. Why can’t there be a sane language‽
There are 2 types of programming languages
- The type everyone keeps complaining about
- The type no one uses
People complain about perl, but no one uses perl.
bash
Because no one likes Java.
Hahahahahhahaha
While Java js definitely one of the best, it still has some quirks that you need to know about.
Java js
That’s an unfortunate typo
Java²script
I mean javascript is java right? It’s in the name
But the Lord came down to see the
cityOS and thetowerapp the people were building. The Lord said, “If as one peoplespeakingprogramming the same language they have begun to do this, then nothing they plan to do will be impossible for them. Come, let us go down and confuse their language so they will not understand each other.”So the Lord scattered them from there over all the earth, and they stopped building the
cityOS. That is why it was called Babel—because there the Lord confused the language of the whole world. From there the Lord scattered them over the face of the whole earth.This message brought to you by TempleOS
Amen. Now, where’s that Wine?
It would have to be written by sane people.
C exists
Computer programming, regardless of language, is hard. The computer does exactly what you tell it to.
Yes. That being said, it matters which language you choose. COBOL is always a bad choice, unless writing in COBOL is the whole point. There isn’t really a universal best choice, either. Python is often a good one, but if you’re doing something big it will become this meme.