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


Groups > comp.lang.python > #78175

Re: Love to get some feedback on my first python app!!!

Path csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!newsfeed.xs4all.nl!newsfeed4a.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail
Return-Path <ckaynor@zindagigames.com>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.021
X-Spam-Evidence '*H*': 0.96; '*S*': 0.00; 'plenty': 0.07; "'no": 0.09; '22,': 0.09; 'comment,': 0.09; 'issue:': 0.09; 'cc:addr :python-list': 0.11; 'anyway': 0.14; 'illustrate': 0.16; 'merely': 0.16; 'name).': 0.16; 'subject:python': 0.16; 'wrote:': 0.18; 'variable': 0.18; 'trying': 0.19; 'seems': 0.21; 'example': 0.22; 'cc:addr:gmail.com': 0.22; 'cc:addr:python.org': 0.22; 'cc:2**1': 0.23; 'mon,': 0.24; 'values': 0.27; 'header:In-Reply-To:1': 0.27; 'chris': 0.29; 'am,': 0.29; 'message-id:@mail.gmail.com': 0.30; 'code': 0.31; 'sep': 0.31; 'subject:some': 0.31; 'quite': 0.32; 'received:209.85.212': 0.32; 'cases': 0.33; 'comment': 0.34; 'could': 0.34; 'agree': 0.35; 'received:209.85': 0.35; 'common': 0.35; 'but': 0.35; 'received:google.com': 0.35; 'there': 0.35; 'received:209': 0.37; 'skip:& 10': 0.38; 'does': 0.39; 'easy': 0.60; 'most': 0.60; 'numbers': 0.61; 'more': 0.64; '(that': 0.65; 'obvious': 0.74; 'subject:!!!': 0.74; 'subject:get': 0.81; 'comment.': 0.84; 'understand,': 0.84; 'subject:Love': 0.91
X-Google-DKIM-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc:content-type; bh=ZyZGYboOToQQW70vFbw2mwfIEVLmTgBBMlGmQxjwFUI=; b=mDPS1I3lWizq58SL030w1/4DpC3coLrW/LVRS51A6WnR20FC+rh8Mh+aQ1ermYGRM8 BQUyeGDwJnPh7/DkReUifOereX54CCQrbdGQiyeZddzaSZAGP6ww+Knst4DUsybIKUC7 7JCpAp3BUpWyqSV88epePMUXDKP16DMyElayxEtApv0OyQTBIE5q5bvOQ1vm2vjXmi0v wKhYZKkb/rKx94AhNeEmu7FmtQsd7irvjldl5qaOeN1xNQkgGrV6vH7mNq2YtO0FWg0x hlA4qcm8jAitYQECpLkvUXSZUyZSKPmnssYLN/KnwH33J7NkW5bAiX7AosMY0M5DfNBJ U4Ng==
X-Gm-Message-State ALoCoQmZkhZM5kvSP8mddh6Fvb+9Wb51EEQYBkUaH9tBZNFU0bTHvwX6x5dG61ST0g733NazW4B8
X-Received by 10.194.88.99 with SMTP id bf3mr22500502wjb.16.1411410284422; Mon, 22 Sep 2014 11:24:44 -0700 (PDT)
MIME-Version 1.0
In-Reply-To <1142710437.7070860.1411401142913.JavaMail.root@sequans.com>
References <CAPTjJmrMq=rCXYFMzCDwFDt577UBdh6O=xNDHM6+n=M-vg6KLA@mail.gmail.com> <1142710437.7070860.1411401142913.JavaMail.root@sequans.com>
From Chris Kaynor <ckaynor@zindagigames.com>
Date Mon, 22 Sep 2014 11:24:24 -0700
Subject Re: Love to get some feedback on my first python app!!!
To Jean-Michel Pichavant <jeanmichel@sequans.com>
Content-Type multipart/alternative; boundary=089e0102ffe8a2bd460503ab9061
Cc "python-list@python.org" <python-list@python.org>
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.14227.1411410291.18130.python-list@python.org> (permalink)
Lines 45
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1411410291 news.xs4all.nl 2893 [2001:888:2000:d::a6]:44156
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:78175

Show key headers only | View raw


[Multipart message — attachments visible in raw view] - view raw

On Mon, Sep 22, 2014 at 8:52 AM, Jean-Michel Pichavant <
jeanmichel@sequans.com> wrote:

> Anyway it's seems we agree anyway because your example perfectly
> illustrate what I was trying to demonstrate:
> print(cells[2]) is very easy to understand, most of people would say 'no
> need of any comment'. I think it does require a comment.
>

But the thing that requires the comment is the "2", not the "print" or the
"cells". And that comes to a more common issue: any number other than 0 or
1 in code most likely needs a comment (that comment could be merely a
variable name). Values of 0 or 1 may need a comment, but there are plenty
of cases where they are used quite clearly - its much less likely that
other numbers have obvious meaning.

Chris

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


Thread

Re: Love to get some feedback on my first python app!!! Chris Kaynor <ckaynor@zindagigames.com> - 2014-09-22 11:24 -0700

csiph-web