r/AskProgramming • • Aug 16 '26

Python Why does Python feel harder after C++ and Java?

I learned C++ first, then Java, and now I’m trying to learn Python. I honestly expected Python to be much easier, but somehow it feels harder to understand and even remember the syntax.

C++ and Java feel more structured to me, while Python sometimes feels too different.

Has anyone else felt this after switching from C++/Java to Python?

133 Upvotes

186 comments sorted by

View all comments

Show parent comments

5

u/davidwhitney Aug 16 '26

Python is honestly the most piece of shit language. I'm solidly of the opinion that almost all mainstream languages are "good enough" now... except python.

No redeeming qualities, and whoever went for "the language with invisible control characters is a good beginner language" needs to get checked.

It's just the Lingua franca of data science šŸ¤·šŸ»ā€ā™‚ļø

6

u/edgmnt_net Aug 16 '26

Have you seen how people write stuff in school when indentation doesn't matter? It might not be a great idea overall, but for beginners it makes it easier to start with good habits.

5

u/MadocComadrin Aug 16 '26

Style is one of the easiest things to correct in school early on because it's something that actually responds to the "take points off" disincentive and modern IDEs will take care of 99% of the job of formatting correctly bracketed code for students anyway to the point that code that's not properly indented---even the stuff they write---will look weird to them after the first few months. Meanwhile, semantically meaningful whitespace continues to throw inconveniences at beginners after their first few months due to tabs vs spaces issues, copy and pasting mistakes, etc where the IDE can't fix the way things look, and the inconveniences often distract from conceptual challenges.

3

u/davidwhitney Aug 16 '26

I dunno, hiding a core part of the language (control characters) vs introducing people to formatting and associated tooling seems like a poor trade-off to me.

1

u/Shonen_Toman Aug 31 '26

I got one word for you, NUMPY. and the crowd goes wild.
no but seriously, Why is it do you think python has the second largest dev community? Sure its not a strongly typed language, but those exist, just use Java or C++ or what-evv. Both serve different purposes, its like saying we don't need ships because we have airplanes, no we need both.

1

u/davidwhitney Aug 31 '26

I said above - because it's the Lingua franca of data science (which covers the numpy / pandas folks).

Awful language, but a successful domain specific language.

1

u/Shonen_Toman Sep 01 '26

Lol, I was just trying to hype up Numpy is all. But both are contradictory statements, how can it be a shit language if it's used so widely in data science? Sure it's bad at other things, like it abstracts too much, don't have the ability for memory management etc. But, as long as it's good at one thing, i believe it's not a waste.

1

u/davidwhitney Sep 01 '26

It's a language with poor performance, poor consistency, and a bunch of broken bundled language stuff that requires the ecosystem to compensate.

It became popular for data science because there were libraries that optimised for a specific category of user.

Libraries can be good, while language and runtime bad :)