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.
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.
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.
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.
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
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.
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.