3 ms·
That's good to hear, actually. I'm sure it can be done well. I've worked on much smaller Python codebases that were unmaintainable, and the lack of punctuation
by feoren 3y ago
That's good to hear, actually. I'm sure it can be done well. I've worked on much smaller Python codebases that were unmaintainable, and the lack of punctuation was one of the problems. A very common source of bugs was things being at the wrong indentation level. You'd have:
def outermost():
def middle():
def innermost():
...
(six hundred lines of code)
...
return something_from_innermost
def another_func():
Uh oh. Is "another_func" at the right indentation level? It's very hard to tell what scope it's at. Yes, this is awful code style, and it still would be difficult even with visible punctuation, but at least you could count the '}'s to see what the programmer actually intended. Here, it's very difficult to know how many scopes just closed. They all opened five screen-heights ago! I am aware that it's easy to write hard-to-follow code in any language, but visible punctuation always helps.