logoalt Hacker News

flykespice • yesterday at 7:41 PM • 5 replies • view on HN

> There should be one-- and preferably only one --obvious way to do it.

Oh boy, that didn't age well for Python language did it? It matches with C++ in growing complexity of syntax features. With a couple dozen ways to write the very same algorithm.


Replies

buster • yesterday at 8:17 PM

To be honest I found this sentence to be beautiful and true for many years after working a lot with php and perl. The mort important word in this sentence is obvious. There are many many many ways to do the same thing but working with python I found that mostly to be true, there is always an obvious, documented way (and not two of three!). Searching for a way to do something in perl, for example, was such a huge difference.

jacquesm • today at 11:43 AM

Let's start off with 'Which Python?'

bazoom42 • today at 10:01 AM

There will always be a billion way to write the same algorithm in a Turing-complete language. That is not the point.

throwaway5752 • yesterday at 10:31 PM

It is really more aspiration, and a good programmer mantra anywhere. Nothing here is so Python specific outside namespaces, and ... that is also a good programmer mantra.

bigstrat2003 • yesterday at 8:02 PM

Python has never followed the Zen. The irritating way the language lets you use non-booleans in a boolean context flies right in the face of "explicit is better than implicit".

➕ show 4 replies