Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #86457 > unrolled thread

Re: Python Worst Practices

Started byBen Finney <ben+python@benfinney.id.au>
First post2015-02-26 12:05 +1100
Last post2015-02-26 14:37 +0000
Articles 2 — 2 participants

Back to article view | Back to comp.lang.python

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: Python Worst Practices Ben Finney <ben+python@benfinney.id.au> - 2015-02-26 12:05 +1100
    Re: Python Worst Practices Grant Edwards <invalid@invalid.invalid> - 2015-02-26 14:37 +0000

#86457 — Re: Python Worst Practices

FromBen Finney <ben+python@benfinney.id.au>
Date2015-02-26 12:05 +1100
SubjectRe: Python Worst Practices
Message-ID<mailman.19229.1424912702.18130.python-list@python.org>
Chris Angelico <rosuav@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

[toc] | [next] | [standalone]


#86501

FromGrant Edwards <invalid@invalid.invalid>
Date2015-02-26 14:37 +0000
Message-ID<mcnb2n$pas$1@reader1.panix.com>
In reply to#86457
On 2015-02-26, Ben Finney <ben+python@benfinney.id.au> wrote:
> Chris Angelico <rosuav@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”.

Unless you've spent all day working on PHP code.

-- 
Grant Edwards               grant.b.edwards        Yow! All of life is a blur
                                  at               of Republicans and meat!
                              gmail.com            

[toc] | [prev] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web