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


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

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

Started byChris Angelico <rosuav@gmail.com>
First post2014-09-23 02:04 +1000
Last post2014-09-23 02:04 +1000
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 Angelico <rosuav@gmail.com> - 2014-09-23 02:04 +1000

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

FromChris Angelico <rosuav@gmail.com>
Date2014-09-23 02:04 +1000
SubjectRe: Love to get some feedback on my first python app!!!
Message-ID<mailman.14215.1411401886.18130.python-list@python.org>
On Tue, Sep 23, 2014 at 1:52 AM, Jean-Michel Pichavant
<jeanmichel@sequans.com> wrote:
> The code I posted had many bugs but one could not be fixed without the comment. Or at least there's an obvious discrepancy between the comment and the code that should catch the reader's attention.
>

The obvious discrepancy, sadly, doesn't tell you which one is right.
It's like the old days of FAT file systems - DOS would maintain two
copies of the eponymous File Allocation Table, but in the event of
corruption, it had no way of knowing which was to be trusted. (And I'm
not sure anything would ever actually notice differences, other than
an explicit CHKDSK.) When you have an intention comment, rather than
simply replicating the functionality in human-readable form, you can
more easily check that the intention matches the rest of the design.

ChrisA

[toc] | [standalone]


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


csiph-web