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


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

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

Started byChris Kaynor <ckaynor@zindagigames.com>
First post2014-09-22 11:24 -0700
Last post2014-09-22 11:24 -0700
Articles 1 — 1 participant

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

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

FromChris Kaynor <ckaynor@zindagigames.com>
Date2014-09-22 11:24 -0700
SubjectRe: Love to get some feedback on my first python app!!!
Message-ID<mailman.14227.1411410291.18130.python-list@python.org>

[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

[toc] | [standalone]


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


csiph-web