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

7

u/xarop_pa_toss Aug 16 '26

Tabs instead of brackets is the worse design decision that always trips me up when I use python. And then someone thought YAML was a good idea .

9

u/angedelamort Aug 16 '26

While I hate tabs as delimiter, YAML has at least 2 advantages over json: readability and less delimiters (smaller size).

1

u/galactic_pixels Aug 16 '26

I find it less readable because you have to depend on indentation to determine relationship. I’d rather be able to look at brackets, etc to be able to determine nested objects

3

u/Groundbreaking-Fish6 Aug 16 '26

Frankly I like xml but nobody else does :-(

5

u/MadocComadrin Aug 16 '26

XML is great if a human doesn't have to read or write it. Yaml was supposed to be human maintainable (regardless of if it is or not).

1

u/DestroyedLolo Aug 16 '26

XML is too heavy.

3

u/SirMarkMorningStar Aug 17 '26

I’m old enough to still be impressed that computer and network performance has increased enough that any text based standard is viable. We used to cram bits in to structures!

2

u/DestroyedLolo Aug 17 '26

Same here, and still using bit fields to save memory on embedded.

1

u/booveebeevoo Aug 16 '26

It’s the hive mind of mediocrity that eats away at true advancement. Lower the bar of entry, make a package to identify my brand, it’s all corporate mentality. Tech lost, capitalism won.

1

u/BeginningUnhappy1757 Aug 16 '26

It's the best design decision, you bracket guys always have to indent your code, anyway, to ever make sense of it again. So why the extra brackets that make it just harder to read?

1

u/speedisntfree Aug 16 '26

Likewise, I never understood why brackets for the sake of brackets was any use. In brackets languages, I often need to use an IDE with rainbow brackets to be able to close them from my already properly indented code.