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


Groups > comp.lang.python > #61256

Re: One liners

Path csiph.com!usenet.pasdenom.info!news.etla.org!news.stack.nl!newsfeed.xs4all.nl!newsfeed4.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail
Return-Path <python-python-list@m.gmane.org>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.003
X-Spam-Evidence '*H*': 0.99; '*S*': 0.00; 'from:addr:yahoo.co.uk': 0.04; 'variables': 0.07; 'steve': 0.09; 'string': 0.09; 'consistency': 0.09; 'dan': 0.09; 'extracted': 0.09; 'lawrence': 0.09; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'python': 0.11; 'language.': 0.14; 'correctness': 0.16; 'culturally': 0.16; 'names?': 0.16; 'pythonic': 0.16; 'received:80.91.229.3': 0.16; 'received:plane.gmane.org': 0.16; 'language': 0.16; 'wrote:': 0.18; 'trying': 0.19; 'code,': 0.22; 'header:User-Agent:1': 0.23; 'long,': 0.26; 'header:X-Complaints-To:1': 0.27; 'header:In-Reply- To:1': 0.27; 'direction': 0.30; "i'm": 0.30; '(which': 0.31; 'getting': 0.31; 'convenience': 0.31; 'multiline': 0.31; 'perl': 0.31; 'priorities': 0.31; 'anyone': 0.31; 'up.': 0.33; 'programmers': 0.33; 'but': 0.35; 'too': 0.37; 'turn': 0.37; 'list': 0.37; 'being': 0.38; 'to:addr:python-list': 0.38; 'does': 0.39; 'to:addr:python.org': 0.39; 'received:org': 0.40; 'expression': 0.60; 'new': 0.61; 'first': 0.61; 'personal': 0.63; 'our': 0.64; 'more': 0.64; 'temporary': 0.65; 'beautiful': 0.68; 'quality': 0.72; 'subject:One': 0.74; 'belief': 0.84; 'complex,': 0.84; 'testability': 0.84; 'received:89': 0.85
X-Injected-Via-Gmane http://gmane.org/
To python-list@python.org
From Mark Lawrence <breamoreboy@yahoo.co.uk>
Subject Re: One liners
Date Sat, 07 Dec 2013 21:10:30 +0000
References <CAGGBd_o1TS02cosi+q9YeN5rnWJxe5mU7xtCTuTMZGO0ntF5TA@mail.gmail.com>
Mime-Version 1.0
Content-Type text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding 7bit
X-Gmane-NNTP-Posting-Host host-89-240-161-231.as13285.net
User-Agent Mozilla/5.0 (Windows NT 6.1; rv:24.0) Gecko/20100101 Thunderbird/24.1.1
In-Reply-To <CAGGBd_o1TS02cosi+q9YeN5rnWJxe5mU7xtCTuTMZGO0ntF5TA@mail.gmail.com>
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.15
Precedence list
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <https://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list/>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.3708.1386450648.18130.python-list@python.org> (permalink)
Lines 41
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1386450648 news.xs4all.nl 2955 [2001:888:2000:d::a6]:51953
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:61256

Show key headers only | View raw


On 06/12/2013 23:54, Dan Stromberg wrote:
>
> Does anyone else feel like Python is being dragged too far in the
> direction of long, complex, multiline one-liners?  Or avoiding temporary
> variables with descriptive names?  Or using regex's for everything under
> the sun?
>
> What happened to using classes?  What happened to the beautiful emphasis
> on readability?  What happened to debuggability (which is always harder
> than writing things in the first place)?  And what happened to string
> methods?
>
> I'm pleased to see Python getting more popular, but it feels like a lot
> of newcomers are trying their best to turn Python into Perl or
> something, culturally speaking.
>

I see all of the above as being down to poor quality programmers who are 
new to Python and have their priorities wrong.  The following is 
extracted from Steve Maguire's "Writing Solid Code".  It's my belief 
that this is a reasonable summing up.

Jack's Priority List      Jill's Priority List
Correctness               Correctness
Global efficiency         Testability
Size                      Global efficiency
Local efficiency          Maintainability/clarity
Personal convenience      Consistency
Maintainability/clarity   Size
Personal expression       Local efficiency
Testability               Personal expression
Consistency               Personal convenience

Jill wants to write good quality, Pythonic code, Jack doesn't, yep?

-- 
My fellow Pythonistas, ask not what our language can do for you, ask 
what you can do for our language.

Mark Lawrence

Back to comp.lang.python | Previous | Next | Find similar | Unroll thread


Thread

Re: One liners Mark Lawrence <breamoreboy@yahoo.co.uk> - 2013-12-07 21:10 +0000

csiph-web