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


Groups > comp.lang.python > #8806

Re: Anyone want to critique this program?

Path csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!aioe.org!feeder.news-service.com!newsfeed.xs4all.nl!newsfeed5.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail
Return-Path <rosuav@gmail.com>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.106
X-Spam-Level *
X-Spam-Evidence '*H*': 0.80; '*S*': 0.01; 'instance,': 0.05; 'run- time': 0.05; 'subject:Anyone': 0.07; 'am,': 0.13; 'wrote:': 0.15; 'finney': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'literals': 0.16; 'newlines': 0.16; 'readability.': 0.16; 'simplicity.': 0.16; 'received:209.85.210.174': 0.19; 'received:mail- iy0-f174.google.com': 0.19; "doesn't": 0.22; 'header:In-Reply- To:1': 0.22; 'literal': 0.23; 'tue,': 0.23; 'writes:': 0.25; 'string': 0.26; 'message-id:@mail.gmail.com': 0.28; 'code,': 0.29; 'looks': 0.30; 'least': 0.31; 'subject:?': 0.31; 'lines': 0.31; 'source': 0.32; 'chris': 0.32; 'it.': 0.33; 'to:addr:python-list': 0.34; 'file': 0.36; 'opposed': 0.37; 'but': 0.37; 'received:google.com': 0.38; 'received:209.85': 0.38; 'subject:: ': 0.38; 'to:addr:python.org': 0.39; 'received:209': 0.40; 'your': 0.60; 'order': 0.62; 'costs': 0.64; 'believe': 0.66; 'subject:program': 0.67; 'valuable': 0.67; 'works,': 0.68; 'subject:this': 0.74; 'gain': 0.79; 'lose': 0.82; '10:03': 0.84; 'flexibility,': 0.84; 'i18n': 0.84; 'paragraphs.': 0.84; 'readability': 0.84; 'ugly,': 0.84; 'hence,': 0.91; 'subject:want': 0.93
DKIM-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; bh=tfOxzCRNeuVZFjs9EAbFLoUc8CRyD5gTimsv9YnbUiQ=; b=jVJvYdnW4mmZN4E5QXdKGb2/Mi+1KZm2bam1GNPvTOmiORW+CnrJaOaGvDsMykJg6f QI/nJ3ROjrFr2bYi5EQqIBKEckcIhbIVD1dWuMUKYuu2/ZQd3YXwvh3BPfiEPfB8lhua hsJYe1ut/dr1JWNIdMOriEmi/sz59OnDirG1g=
MIME-Version 1.0
In-Reply-To <8762nhk2ze.fsf@benfinney.id.au>
References <4be432d4-5185-4101-9699-de5524c3fa57@x3g2000yqj.googlegroups.com> <mailman.579.1309662170.1164.python-list@python.org> <5c3aba69-fddd-45ed-bf0c-8fa98df7aa73@r2g2000vbj.googlegroups.com> <Xns9F1771465C83AOKB@88.198.244.100> <75474208-0a8f-4ac1-8e26-18d8fe6b9efc@u26g2000vby.googlegroups.com> <Xns9F18623A1FBF4OKB@88.198.244.100> <mailman.599.1309800071.1164.python-list@python.org> <8762nhk2ze.fsf@benfinney.id.au>
Date Tue, 5 Jul 2011 10:11:41 +1000
Subject Re: Anyone want to critique this program?
From Chris Angelico <rosuav@gmail.com>
To python-list@python.org
Content-Type text/plain; charset=windows-1252
Content-Transfer-Encoding quoted-printable
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.12
Precedence list
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <http://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 <http://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.615.1309824703.1164.python-list@python.org> (permalink)
Lines 24
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1309824703 news.xs4all.nl 21761 [2001:888:2000:d::a6]:54179
X-Complaints-To abuse@xs4all.nl
Xref x330-a1.tempe.blueboxinc.net comp.lang.python:8806

Show key headers only | View raw


On Tue, Jul 5, 2011 at 10:03 AM, Ben Finney <ben+python@benfinney.id.au> wrote:
> Chris Angelico <rosuav@gmail.com> writes:
>
>> In this instance, I believe the OP was paragraphing his text.
>
> What is “paragraphing”?

If you look at the original code, you'll see embedded newlines used to
create multiple paragraphs. Hence, paragraphing as opposed to simply
wrapping in order to keep his source lines <80 chars.

>> My personal inclination would be to simply back-tab it. It looks ugly,
>> but at least it works, and doesn't require a run-time re-parse.
>
> Readability counts. Why is “doesn't require a run-time re-parse” more
> valuable than readability?

Readability definitely counts. But having a string literal require an
extra call to make it what you want also costs readability. It's like
pushing your literals off to an i18n file - what you gain in
flexibility, you lose in simplicity.

ChrisA

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


Thread

Anyone want to critique this program? John Salerno <johnjsal@gmail.com> - 2011-07-02 19:19 -0700
  Re: Anyone want to critique this program? Chris Angelico <rosuav@gmail.com> - 2011-07-03 13:02 +1000
    Re: Anyone want to critique this program? John Salerno <johnjsal@gmail.com> - 2011-07-02 20:41 -0700
      Re: Anyone want to critique this program? Chris Angelico <rosuav@gmail.com> - 2011-07-03 14:00 +1000
      Re: Anyone want to critique this program? "OKB (not okblacke)" <brenNOSPAMbarn@NObrenSPAMbarn.net> - 2011-07-03 18:06 +0000
        Re: Anyone want to critique this program? John Salerno <johnjsal@gmail.com> - 2011-07-03 20:25 -0700
          Re: Anyone want to critique this program? "OKB (not okblacke)" <brenNOSPAMbarn@NObrenSPAMbarn.net> - 2011-07-04 16:37 +0000
            Re: Anyone want to critique this program? Chris Angelico <rosuav@gmail.com> - 2011-07-05 03:21 +1000
              Re: Anyone want to critique this program? Ben Finney <ben+python@benfinney.id.au> - 2011-07-05 10:03 +1000
                Re: Anyone want to critique this program? Chris Angelico <rosuav@gmail.com> - 2011-07-05 10:11 +1000
      Re: Anyone want to critique this program? Ben Finney <ben+python@benfinney.id.au> - 2011-07-04 07:37 +1000

csiph-web