🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #56592

Re: [yenc] yydecode -- reimplementation of decoder

#56592
From: Liyang Hu
Date: Mon, 18 Feb 2002 00:59
38 lines
2919 bytes
Neeber <a110y2@hotmail.com> wrote:
> On 17 Feb 2002 02:28:41 GMT, Liyang Hu <newsgroups@nerv.cx> wrote:
>>How would you propose the decoder cope with all of these then?
>>Should it just give up, or try to Do the Right Thing? (Then again,
>>in these cases, what is the right thing to do?) Make sure you
>>include a description of expected behaviour!
> From a user's perspective, I'd want the application to, above all,
> not produce invalid output files. A user would be satisfied to
> know that the file (or part) was corrupted somehow, and not expect
> the app to magically fix the corruption.

Broken files gets renamed to file.broken in yydecode's
implementation.

One shortcoming of the current yEnc format is that you don't know
how many parts there are in the set ... each part only comes tagged
with the part number, but not the total number of parts. So say the
files I downloaded is missing the last part: Any suggestions as to
what the correct behaviour should be?

> From a programmer's perspective, all they'd really need to take
> care of is to not crash :)

I don't think yydecode does. (Famous last words.) I'd like to see
someone prove me wrong though. (If only so I can go and fix it. ^_^)

>>I'm sure you'll think of more specific cases as you go through the
>>process. ^_^
> K.T. Homme already gave me some. This is good stuff.

Any estimate on the ETA for these test suites?

/Liyang
-- 
.--| Liyang HU |--| http://nerv.cx/ |--| Caius@Cam |--| ICQ: 39391385 |--.
| drug, n: A substance that, when injected into a rat,                   |
|          produces a scientific paper.                                  |
Technical Details
Message-ID: <a4pjm3$4pg$1@pegasus.csx.cam.ac.uk>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!logbridge.uoregon.edu!dispose.news.demon.net!demon!peernews!peer.cwci.net!newspeer.clara.net!news.clara.net!oleane.net!oleane!bnewspeer00.bru.ops.eu.uu.net!bnewspeer01.bru.ops.eu.uu.net!lnewspeer00.lnd.ops.eu.uu.net!emea.uu.net!server1.netnews.ja.net!pegasus.csx.cam.ac.uk!not-for-mail
References: <a4i6q4$kr8$1@pegasus.csx.cam.ac.uk> <41299.g22205@archiver.winews.net> <0vct6ugbfkb43j1p6168m37qoml0ahtej9@4ax.com> <a4n4gp$5c6$1@pegasus.csx.cam.ac.uk> <drpv6u0kmvn0fo53r6sj281m2fqct8te97@4ax.com>

Show Full Headers
Complete Article Headers
Message-ID: <a4pjm3$4pg$1@pegasus.csx.cam.ac.uk>
Subject: Re: [yenc] yydecode -- reimplementation of decoder
Date: Mon, 18 Feb 2002 00:59:47 +0000
From: Liyang Hu <newsgroups@nerv.cx>
References: <a4i6q4$kr8$1@pegasus.csx.cam.ac.uk> <41299.g22205@archiver.winews.net> <0vct6ugbfkb43j1p6168m37qoml0ahtej9@4ax.com> <a4n4gp$5c6$1@pegasus.csx.cam.ac.uk> <drpv6u0kmvn0fo53r6sj281m2fqct8te97@4ax.com>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!logbridge.uoregon.edu!dispose.news.demon.net!demon!peernews!peer.cwci.net!newspeer.clara.net!news.clara.net!oleane.net!oleane!bnewspeer00.bru.ops.eu.uu.net!bnewspeer01.bru.ops.eu.uu.net!lnewspeer00.lnd.ops.eu.uu.net!emea.uu.net!server1.netnews.ja.net!pegasus.csx.cam.ac.uk!not-for-mail
Newsgroups: news.software.nntp
Organization: University of Cambridge, England
Lines: 37
Sender: Liyang Hu <lh259@portal.acad.cai.cam.ac.uk>
NNTP-Posting-Host: portal.acad.cai.cam.ac.uk
User-Agent: tin/1.5.8-20010221 ("Blue Water") (UNIX) (Linux/2.4.17-xfs+lvm10+intl (i686))