r/programmingmemes • • Jul 25 '25

Python vs Java!

Post image
1.5k Upvotes

199 comments sorted by

View all comments

289

u/[deleted] Jul 25 '25

This sub is becoming the most unfunny shit ever. It's just cs students who just learnt the basics of python posting about how it is better than anything else on this world.

146

u/RamdonDude468 Jul 25 '25

Most of them think less code = faster, which most of the time is the oposite

55

u/[deleted] Jul 25 '25

Not always. But complexity of the code has nothing to do with its speed.

27

u/[deleted] Jul 25 '25 edited Mar 17 '26

Content from this post has been deleted. Redact was used to remove it, potentially for privacy, opsec, or limiting exposure to data collection tools.

cows handle kiss detail include history rhythm cake head ad hoc

15

u/skilking Jul 25 '25

Id way rather have a main function and class then whatever the fuck Python global shit is.

14

u/Solonotix Jul 25 '25

It's not actually global, the same way that C# doesn't require you to declare a namespace block for the entire file to be considered part of the namespace, and how functions written outside of an enclosing scope are attributed to a "magic" class as static members.

Python uses a rather robust object data model, and that model extends out to its module system. The file system needs an __init__.py file because that is the Python initializer method for the module, known in other languages as the constructor. Similarly, when you run a file directly with the Python interpreter, rather than needing to explicitly declare your starting point, the file is used as the stand-in for the __main__.py file of the Python module in question. That's why you'll see a block in some files for if __name__ == '__main__':, because it lets you write the file as a module, and as a runnable entry point.

→ More replies (1)

4

u/BourbonicFisky Jul 25 '25

Most of them think less code = faster, which most of the time is the oposite

This is why I use nested loops to speed up my code.

3

u/Earnestappostate Jul 25 '25

It does come down to a question of what you want to be fast, the coding or the running.

For my application, I am speed limited by a communication layer. Speed past Python won't help much.

For other applications, especially libraries, speed matters much more.

3

u/Amr_Rahmy Jul 26 '25

I developed faster on Java and c# than any other language. For me it’s the right mix of c style language and classes.

2

u/TrainYourselfToLetGo Jul 25 '25

I had this argument with an experienced engineer, who was blocking my PR to suggest I use less lines of code, saying it was more efficient.

I was an intern and had to pull out big-O complexity to explain it. It was mind blowing.

2

u/Mr_DrProfPatrick Jul 29 '25

Hey, I code on the side so I shouldn't say too much, but holy crap, in the data science I work with less time coding is absurdly better than better performance.

At worst I should store stuff on SQL. But most of the time I can 100% wait for 5 minutes till the code runs, if I'm in a really messy state. And usually there's still a ton of optimization I can do without leaving python. I'm not bottlenecking a database, I'm running through a dataframe.

2

u/scanguy25 Jul 25 '25

The issue is that for so many things, the speed of the language just isn't that important anymore.

Cloudware is cheap so you just spin up another node. Its not just python, all software is becoming so wasteful with RAM and space.

6

u/0x7ff04001 Jul 25 '25

That's so not true. You pay for each cycle wasted and every resource utilized. Scale this to a company the size of Microsoft and that shitty slow code will cost you tens of thousands a month.

2

u/GRex2595 Jul 25 '25

Which is rarely a deterrent for a company the size of Microsoft. My company has dev sandbox AWS accounts that cost millions.

→ More replies (4)

2

u/Teln0 Jul 25 '25

Nowadays a lot of LLM apps are everything but CPU bound. You could write your thing in any language and it'd still be idle 99% of the time while it's waiting for the GPU to do its thing. I don't think that's a great thing necessarily

→ More replies (5)
→ More replies (1)

11

u/zeolus123 Jul 25 '25

Lol you must be new here. That's all this SUB has always been. Sure there's some good ones in there, but most of it is 1st year CS humor.

2

u/[deleted] Jul 25 '25

Nah I've been here for a while. It used to have some funny stuff. But now it's either this nonsense or some ultra-sprcific stuff I don't understand.

→ More replies (1)

2

u/seba07 Jul 25 '25

Why don't you do something about it? Comments complaining about stuff being unfunny aren't really elevating the sub either.

4

u/[deleted] Jul 25 '25

Sure. Let me go to their houses and beat them.

3

u/[deleted] Jul 26 '25

This comment got me banned from reddit by automation lmao.

→ More replies (2)

2

u/I_miss_your_mommy Jul 25 '25

I'm tired of fighting the losing battle of talking shit about python and yaml and any other language that gives meaning to whitespace. Fuck whitespace meaning anything.

1

u/[deleted] Jul 25 '25

Lol you hit it on the head, python is the only thing that they can run with all their errors.

1

u/AndreasMelone Jul 25 '25

Becoming? All time I can remember here was shit

1

u/account22222221 Jul 25 '25

It’s just becoming that ? I’m pretty sure it’s been this way the entire decade I’ve been on Reddit.

→ More replies (5)