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


Groups > comp.lang.python > #61256

Re: One liners

From Mark Lawrence <breamoreboy@yahoo.co.uk>
Subject Re: One liners
Date 2013-12-07 21:10 +0000
References <CAGGBd_o1TS02cosi+q9YeN5rnWJxe5mU7xtCTuTMZGO0ntF5TA@mail.gmail.com>
Newsgroups comp.lang.python
Message-ID <mailman.3708.1386450648.18130.python-list@python.org> (permalink)

Show all headers | 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