🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #61286

Re: Custom Client Software - Last Quick Question

#61286
From: Juergen Helbing
Date: Thu, 10 Oct 2002 19:05
35 lines
2063 bytes
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.

In the specific case - groups... head.... I personally would _always_ 
wait if the group is valid (wait for the response). But issuing
50 head/article commands with WAIT is not acceptable - especially if
the programmers targets high speed (DSL) audience.
(A better method for head-head-head is to use the msgid instead
of the article number. Then the group command is not necessary at all).

Creating a "small program" first - and expanding it later without
having enough thought about the fundamental structure results
often in instable structure.


Personal experiences....

-- 
Juergen

Technical Details
Message-ID: <4005l.aa2202@archiver.winews.net>
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.uchicago.edu!newsfeed.cs.wisc.edu!newsfeed.mathworks.com!wn3feed!worldnet.att.net!207.14.113.17!news.alt.net!usenet
References: <92A385EF1idispcom@64.8.1.226> <20021010142425.883$Mr@newsreader.com>

Show Full Headers
Complete Article Headers
Message-ID: <4005l.aa2202@archiver.winews.net>
Subject: Re: Custom Client Software - Last Quick Question
Date: Thu, 10 Oct 2002 19:05:40 +0000
From: archiver@i3w.com (Juergen Helbing)
References: <92A385EF1idispcom@64.8.1.226> <20021010142425.883$Mr@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.uchicago.edu!newsfeed.cs.wisc.edu!newsfeed.mathworks.com!wn3feed!worldnet.att.net!207.14.113.17!news.alt.net!usenet
Newsgroups: news.software.nntp
Organization: Altopia Corp. - Usenet Access - http://www.altopia.com
Lines: 34
X-Newsreader: MyNews