3 ms·
No, that's Java. Flat is better than nested: no self-respecting Python programmer would write hierarchy that deep.
by qwertyuiop924 10y ago
No, that's Java. Flat is better than nested: no self-respecting Python programmer would write hierarchy that deep.
- joesb 10y agoSo which rule take precedents here? Namespace is obviously not flat, at least it's more nested than one without namespace. That's the problem I have with people praising Zen of Python as if it means anything. It's like a bible you just pick the verse you like to justify your action even if it might conflict with other rules. Then you praise the whole thing for being so wise.
- qwertyuiop924 10y agoIt means a lot: good python code follows it. However, yes, some of the verses conflict, because it turns out that good advice sometimes contradicts itself. All I can say is don't go too far in either direction.
- LyndsySimon 10y agoMuch of the point of the Zen of Python is that it's self-contradictory.
- eximius 10y agoBalanced, you must be.
- ubernostrum 10y agoNo, Java looks like the famous quotation about the nail and the horse from: http://steve-yegge.blogspot.com/2006/03/execution-in-kingdom-of-nouns.html http://steve-yegge.blogspot.com/2006/03/execution-in-kingdom...