Article View: news.software.nntp
Article #61325Re: Custom Client Software - Last Quick Question
From: Curt Welch
Date: Fri, 11 Oct 2002 20:44
Date: Fri, 11 Oct 2002 20:44
45 lines
3207 bytes
3207 bytes
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. -- Curt Welch http://CurtWelch.Com/ curt@kcwc.com Webmaster for http://NewsReader.Com/
Technical Details
Message-ID:
<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!bloom-beacon.mit.edu!ra.nrl.navy.mil!dca6-feed2.news.algx.net!allegiance!newsfeed1.cidera.com!Cidera!feed1.newsreader.com!newsreader.com!news2.newsreader.com!ellis.newsreader.com!not-for-mailReferences:
<92A385EF1idispcom@64.8.1.226> <20021010142425.883$Mr@newsreader.com> <4005l.aa2202@archiver.winews.net> <92A4A430Didispcom@64.8.1.226>Show Full Headers
Complete Article Headers
Message-ID: <20021011164437.597$MG@newsreader.com>
Subject: Re: Custom Client Software - Last Quick Question
Date: Fri, 11 Oct 2002 20:44:37 +0000
From: curt@kcwc.com (Curt Welch)
References: <92A385EF1idispcom@64.8.1.226> <20021010142425.883$Mr@newsreader.com> <4005l.aa2202@archiver.winews.net> <92A4A430Didispcom@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!bloom-beacon.mit.edu!ra.nrl.navy.mil!dca6-feed2.news.algx.net!allegiance!newsfeed1.cidera.com!Cidera!feed1.newsreader.com!newsreader.com!news2.newsreader.com!ellis.newsreader.com!not-for-mail
Organization: NewsReader.Com
Newsgroups: news.software.nntp
X-Trace: NewsReader.Com RuB6sY,CLfFRo4xE5lwpNMsyP,4xPaz+fcfRAl+OQWOsd/
X-Face: "p}G*1KH{+F7EYGKLb>ogDguabZ+%,?^epeFB!nzu`)`$=QcvL1KF6<0GH!Tbc!Sqo[|tV5
%IW48mQf3K=Ci&gZ7]]aazx@]Y-nq!r5{yH/#,?@lDdUDvOfByB2hVW0.@OM%{l/{cT'{w
X-Url: http://CurtWelch.Com/
User-Agent: NewsReader.Com
Lines: 44