Article View: news.software.nntp
Article #61328Re: Custom Client Software - Last Quick Question
From: t.h.i.s.n.t.h.a.t DS
Date: Fri, 11 Oct 2002 23:48
Date: Fri, 11 Oct 2002 23:48
104 lines
5292 bytes
5292 bytes
see the end for my thoughts plz..... curt@kcwc.com (Curt Welch) wrote in <20021011164437.597$MG@newsreader.com>: >t.h.i.s.n.t.h.a.t@a.d.e.l.p.h.i.a..n.e.t (DS) wrote: >> archiver@i3w.com (Juergen Helbing) wrote in >> <4005l.aa2202@archiver.winews.net>: >> >> >curt@kcwc.com (Curt Welch) wrote: >> > >> >>So for >> >>sure, start off by always waiting for the response and then look for >> >>times where you feel you might want to do something tricker later. >> > >> >I would not subscribe to that statement - after writing MyNews for >> >three years now. >> >A programming sequence which is based on send-wait-receive-send... >> >is so differently from a "send-send-send..... read-read-read" >> >approach that the produced software is unusable later. >> > >> >My (very personal and subjective) tips would be: >> > >> >Write your code from the beginning as if would have to handle a >> >stream of replies. Here: feed the full responses to a parser. > >I agree with that BTW as long as that is where you expect to end up. >Based on what had been said so far however, I didn't expect him to >every end up there. If spotting "(X/Y)" anywhere in the subect instead >of only at the end is something you "debate doing", then writing >code to correctly deal with async commands is not likely in my mind >to happen (particlaly because I know it's only needed if you are >interested in squeezing a 5% performance improvement out of your code >for a 200% increase in complexity). > >> >Creating a "small program" first - and expanding it later without >> >having enough thought about the fundamental structure results >> >often in instable structure. > >For sure. But the truth is, if you don't know what you are doing before >you start, you are fored to do that, and you _will_ in up with sections >of code that is a total mess and will need to be thrown out and >rewritten from the ground up now that you understand what is needed. > >All software has to be written at least twice to get them right. > I agree totally with the last statement about now knowing what you are doing. In my case this is only partially true. the only thing i don't know what i'm doing, but methodically coding, is the NNTP protocol, which is obviously why i'm here. please correct any of the folowing statements if you disagree. i'm not stating these as facts, i am stating these as my opinions as formed by my current excercise and past usenet use experience. there are 3 basic operations, strictly related to NNTP TRANSFER (no posting) 1- Download grouplists 2- Download Headers 3- Download articles & decode files i am now on step 2. i have a lot of experience with database programming, and IMO, NNTP readers are more of a database application than anything else. download group names into a database - then subscribe/unsubscribe download headers into a database - then combine multipart's (probably the most tricky as far as the database procedure's are concerned. download article parts to disk, combine, decode. i know i'm over simplifying this, but these (IMO) are the main functions. i am developing this as a multi-user database application, which in it's own right isn't the easiest thing to do. so to say i don't know what i'm doing (not that you said that, i know it was a general statement) is only partially correct because of my unfamiliarity with the NNTP protocol. i am developing in a 'component' fashion, that is, call a single function to d/l headers, or groups, or whatever and writing marshalling procedures to keep everything in check between threads. and when i'm donw, tour right, i'll probably have to re-code a bunch of it. DS PS- (again, i know it was a general statement) i'm using the same procedure to check for (part/totalParts) no matter where it is in the subject line. so the big questions here is..... should i find what appears to be a (part/totalParts reference) in the subject line, how far towards the beginning of the subject line would you think it should be interpereted as such. even if it's the first thing in the subject? Thanks again.
Technical Details
Message-ID:
<92A4CE566idispcom@64.8.1.226>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!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!router1.news.adelphia.net!news1.news.adelphia.net.POSTED!not-for-mailReferences:
<92A385EF1idispcom@64.8.1.226> <20021010142425.883$Mr@newsreader.com> <4005l.aa2202@archiver.winews.net> <92A4A430Didispcom@64.8.1.226> <20021011164437.597$MG@newsreader.com>Show Full Headers
Complete Article Headers
Message-ID: <92A4CE566idispcom@64.8.1.226> Subject: Re: Custom Client Software - Last Quick Question Date: Fri, 11 Oct 2002 23:48:57 GMT From: t.h.i.s.n.t.h.a.t@a.d.e.l.p.h.i.a..n.e.t (DS) References: <92A385EF1idispcom@64.8.1.226> <20021010142425.883$Mr@newsreader.com> <4005l.aa2202@archiver.winews.net> <92A4A430Didispcom@64.8.1.226> <20021011164437.597$MG@newsreader.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!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!router1.news.adelphia.net!news1.news.adelphia.net.POSTED!not-for-mail Newsgroups: news.software.nntp Organization: Your Company User-Agent: Xnews/03.08.04 Lines: 103 NNTP-Posting-Host: 68.71.194.138 X-Complaints-To: abuse@adelphia.net X-Trace: news1.news.adelphia.net 1034380137 68.71.194.138 (Fri, 11 Oct 2002 19:48:57 EDT) NNTP-Posting-Date: Fri, 11 Oct 2002 19:48:57 EDT