Python Worst Practices

Ben Finney ben+python at benfinney.id.au
Wed Feb 25 20:05:12 EST 2015


Chris Angelico <rosuav at gmail.com> writes:

> IMO the whole system of boolean logic in shell scripts is a massive
> pile of hacks.

Agreed. It bears all the hallmarks of a system which has been extended
to become a complete programming language only with extreme reluctance
on its part.

I continue to be impressed by how capable and powerful Unix shell is as
a full programming language. Especially it is sorely missed on other
OSes which lack a capable shell.

But it could never be called “elegant”.

> The sh and bash system of logic works, there's no doubt about it. […]
> But none of this means that Python should, in any way, imitate it.

Quite so.

-- 
 \     “Airports are ugly. Some are very ugly. Some attain a degree of |
  `\        ugliness that can only be the result of a special effort.” |
_o__)       —Douglas Adams, _The Long Dark Tea-Time of the Soul_, 1988 |
Ben Finney




More information about the Python-list mailing list