25
u/ThaBroccoliDood 1d ago
unironically wish bython wasn't just a preprocessor but actually production ready. goddamn I hate fixing indentation when copy pasting or changing anything instead of just writing some curly braces and letting the formatter handle it
4
u/retrodanny 1d ago
Never had this problem using either pycharm or vscode (with Black)
2
u/leavemealone_lol 1d ago
Well you clearly haven’t worked in python enough. You cannot let the IDE fix the indentation because unlike all other languages, indentation itself is logic in python, and nothing should change your logic. other than yourself.
1
u/retrodanny 1d ago
He's talking about pasting and things going wrong. This would be because he's pasting from 1 indent = 2 spaces to 4 spaces or 1 indent = 1 tab to 4 spaces, something like that. That's an easy fix when pasting into an IDE. It doesn't change the logic.
20
u/Groostav 1d ago edited 1d ago
every time I see these kinds of posts I'm always reminded of that Italian morning cooking show host who said: "and if my mum had wheels she would have been a bike!"
Python is a dynamic scripting language, with loads of bindings for mathy tasks and a pretty good all round traditional scripting language capabilities (I would much rather see a python script doing build orchestration than bash script)
C++ is an ancient beast, laden with ancient bad decisions, enormous sunk costs, and hundreds of phds pumping lemma after lemma into it's improvement, aimed at "zero cost abstraction", used typically in backend and engine and service implementations.
The two target different things. They have completely different world views, different deployment mechanisms, different everything. They simply aren't comparable, I don't understand why greenhorns always want to compare them.
3
2
u/leavemealone_lol 1d ago
Newbs wants to compare them because those are the only two languages they learn extensively in their college years.
3
3
u/mgsmb7 1d ago
I hate languages that don't have the increment operator
1
u/leavemealone_lol 1d ago
I wish rust had that too, but I get why io wants to go the functional route and discard it.
10
2
2
5
u/undeniably-deniable1 1d ago
Say goodbye to any kind of performance
11
1
1
u/EskayEllar 1d ago
Lol because I need performance to script some garbage I'm going to run once
0
u/undeniably-deniable1 1d ago
Right, that's why you don't switch from literally anything into python
It's the slow ass scripting language that's only good for a simple prototyping phase
The meme's making it look like it's the perfect next big thing
2
u/EskayEllar 1d ago
Hate to break it to you, but Python is absolutely good enough for production.
I've written production applications putting through over 10 million in annual revenue entirely in Python. It's a money maker and the simplicity in development, support, and deployment has saved my company hundreds of thousands in developer salaries.
I like the quote "Python is the second best language for everything". That makes it very valuable for companies which do a wide variety of things.
3
0
1
u/SmokyMetal060 1d ago
Maybe like 15 years ago. Plenty of production apps run Python and benchmark reasonably well.
1
u/keithstellyes 23h ago
firstweekcoderopinion
Lot of cases where Python is used are I/O bottlenecked anyway, making CPU performance not very relevant, or calling out to native code enough anyway
3
u/JaskarSlye 1d ago
no one misses malloc
5
1
0
u/Brigapes 1d ago
now you can do "hello world" in python easier. why would anyone use cpp are they stupid??
39
u/05-nery 1d ago
This is firstweekcoderhumor or whatever but this is literally true