this post was submitted on 17 Aug 2024
696 points (95.1% liked)

Programmer Humor

32410 readers
308 users here now

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

founded 5 years ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[โ€“] [email protected] 2 points 2 months ago (1 children)

Torvalds wrote this about C. There's plenty languages where it's much more common and less of a complexity indicator to open up scopes.

[โ€“] naught 6 points 2 months ago

Correct, I linked the source of the quote. My implication is the general idea is applicable here. Is python one of these languages where it is idiomatic to nest code deeply?

The Zen of Python:

Flat is better than nested.

From the python I have seen and written, deep nesting is avoided.