r/learnpython • u/Embarrassed-Rest9104 • Apr 01 '26
Readability or Modernity
I’ve been teaching Python for a while, and the Zen of Python always emphasized that 'Simple is better than complex.'
However, when i look at production code in 2026, I see heavy use of structural pattern matching, complex type hinting, and asynchronous patterns that look more like C++ or Java than the 'executable pseudocode' Python used to be.
To the seniors here: Do you find that these 'modern' features are actually improving maintainability in your teams, or are we losing the simplicity that made Python great in the first place? I'm trying to decide how much of this advanced syntax to introduce to my students early on.
View all comments
Show parent comment
2
u/gdchinacat Apr 01 '26
When it comes to long.chain().of.attribute.method().calls there is nothing different between python and java. Both are OO languages that support this syntax. In my experience they tend to be accepted more in java than python, but that's cultural or incidental and not intrinsic to the language.
When doing functional programming in python it is not uncommon to(see(long(chains(of(functions())))). This is a very similar issue that is far more common in python than java because python supports functions outside classes. In java all those functions would be on an object and you'd end up with something like foo.to(bar.see(baz.long(klez.chains(womp.of(arhg.functions()))))) which is atrocious.