3 ms·
Somewhat. The clean syntax of the language certainly helps. However, it's not really Python itself that encourages clean code. It's the Python way -- meaning th
by teilo 13y ago
Somewhat. The clean syntax of the language certainly helps. However, it's not really Python itself that encourages clean code. It's the Python way -- meaning the culture. The concept that there should be only one right way to do things is extended right down to the way code is formatted. There is even an official PEP (Python equivalent to an RFC) which covers it.
In other words, in the Python world, personal standards are discouraged, and there is a remarkable amount of voluntary compliance with the community standards. I work in a number of other languages on a regular basis, and while there are certainly a set of best-practices out there for most languages (often 2 or 3 of them, in fact), I don't see anything nearly so much uniform compliance as in the Python world. I don't really know why.