this post was submitted on 16 Sep 2024
700 points (97.2% liked)

Programmer Humor

32193 readers
481 users here now

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

Rules:

founded 5 years ago
MODERATORS
 
top 50 comments
sorted by: hot top controversial new old
[–] jeffhykin@lemm.ee 110 points 2 weeks ago (1 children)

I didnt upvote the other python-beginer friendly meme cause it wasn't accurate. But this one is on point.

[–] Email@lemmy.world 22 points 2 weeks ago

Hey, no pointers!

[–] heavy@sh.itjust.works 93 points 2 weeks ago (3 children)

I don't know who needs to hear this, but Python, like most languages, can be as complex as you make it.

[–] MashedTech@lemmy.world 17 points 2 weeks ago
load more comments (1 replies)
[–] dudinax@programming.dev 58 points 2 weeks ago (8 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 2 weeks 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 24 points 2 weeks 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.

load more comments (1 replies)
[–] LANIK2000@lemmy.world 14 points 2 weeks 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 2 weeks ago (1 children)
load more comments (1 replies)
load more comments (4 replies)
[–] Machindo@lemmy.ml 57 points 2 weeks ago

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.

[–] fossphi@lemm.ee 48 points 2 weeks ago (7 children)

Oh god, I feel this. Why can't there be a sane language‽

[–] SnotFlickerman@lemmy.blahaj.zone 55 points 2 weeks ago (1 children)

But the Lord came down to see the ~~city~~ OS and the ~~tower~~ app the people were building. The Lord said, “If as one people ~~speaking~~ programming 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 ~~city~~ OS. 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

[–] dohpaz42@lemmy.world 16 points 2 weeks ago (1 children)

Amen. Now, where’s that Wine?

[–] xavier666@lemm.ee 46 points 2 weeks ago (1 children)

There are 2 types of programming languages

  • The type everyone keeps complaining about
  • The type no one uses
load more comments (1 replies)
[–] henfredemars@infosec.pub 25 points 2 weeks ago

It would have to be written by sane people.

[–] wewbull@feddit.uk 14 points 2 weeks ago (1 children)

Computer programming, regardless of language, is hard. The computer does exactly what you tell it to.

load more comments (1 replies)
[–] imPastaSyndrome@lemm.ee 9 points 2 weeks ago (1 children)

Because no one likes Java.

Hahahahahhahaha

[–] kameecoding@lemmy.world 9 points 2 weeks ago (1 children)

While Java js definitely one of the best, it still has some quirks that you need to know about.

[–] ilega_dh@feddit.nl 20 points 2 weeks ago (2 children)

Java js

That’s an unfortunate typo

[–] Sonotsugipaa@lemmy.dbzer0.com 6 points 2 weeks ago

Java²script

load more comments (1 replies)
load more comments (2 replies)
[–] SnotFlickerman@lemmy.blahaj.zone 36 points 2 weeks ago
[–] toastal@lemmy.ml 22 points 2 weeks ago (1 children)

This is so true & unfortunately everyone keeps telling beginners to start at Python

[–] OsrsNeedsF2P@lemmy.ml 10 points 2 weeks ago (1 children)

But and instead of && means beginner friendly

load more comments (1 replies)
[–] brettvitaz@programming.dev 20 points 2 weeks ago (3 children)

Very little of this is uniquely a problem in Python. It seems to me that your problem is with software development in general.

[–] kameecoding@lemmy.world 17 points 2 weeks ago (1 children)

My problem is with semantic whitespace

[–] tiefling@lemmy.blahaj.zone 9 points 2 weeks ago (2 children)

That's really the part I hate the most. it just feels wrong

load more comments (2 replies)
[–] JackbyDev@programming.dev 9 points 2 weeks ago (1 children)

No, the dependency management in Python is a nightmare. There's like a billion options for it.

[–] brettvitaz@programming.dev 5 points 2 weeks ago (1 children)

Use pipenv and don’t think about it anymore.

load more comments (1 replies)
[–] MashedTech@lemmy.world 7 points 2 weeks ago (1 children)

I used to love it so much more...

[–] HStone32@lemmy.world 6 points 2 weeks ago (1 children)

come into the light, my child. become an electrical engineer.

[–] azimir@lemmy.ml 7 points 2 weeks ago (2 children)

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.

load more comments (2 replies)
[–] powermaker450@discuss.tchncs.de 20 points 2 weeks ago* (last edited 2 weeks ago)

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

[–] SatyrSack@lemmy.one 17 points 2 weeks ago (2 children)

Are any of those things that you actually deal with as a beginner, though? Sure, those add complexities, but by the time you start to get into them, you are probably no longer a beginner.

[–] MashedTech@lemmy.world 21 points 2 weeks ago (3 children)

Of course... But the idea is that it is misleading... And there's more traps the beginners falls into. I have a feeling if beginners begin with C++, or other language that is strongly typed and requires memory management and then do some other language that is more abstract like python; they will become better programmers compared to them doing it in reverse.

[–] xpinchx@lemmy.world 8 points 2 weeks ago

Yeah but fuck all that python is good enough for most beginners. Variables, scope, loops, functions, operators... Once you get some of the principles down switching to C++ or similar isn't nearly as bad.

Being a person that tried to learn C/C# from scratch in my early days python was a good gateway language.

load more comments (2 replies)
[–] Ephera@lemmy.ml 9 points 2 weeks ago

I don't know, man, far too many people seem to think that "easy to learn" means they'll know all they need to know in relatively short time.

Like, you talk to our data scientists and they'll tell you doing anything in Python, no problem. But you talk to our seasoned software engineers and you see the war flashbacks in their eyes, because it racks up in complexity so fucking quickly, it's insane.

[–] fin@sh.itjust.works 9 points 2 weeks ago* (last edited 2 weeks ago) (7 children)

While being controversial, rye is very good for small personal projects. It does pretty much everything from python version management to project scaffolding.

[–] lime@feddit.nu 9 points 2 weeks ago

they are also working on a follow-up, uv. not really a fan of writing tooling in another language but it works really well.

load more comments (6 replies)
[–] DerArzt@lemmy.world 6 points 2 weeks ago (12 children)

For how popular of a language python is, at this point it's a bad sign to me that the language has default way to manage versions and create new projects. I get having options, but options are annoying to new folk.

load more comments (12 replies)
load more comments
view more: next ›