From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fdb0e,cdca3dc8d6167cd4 X-Google-Attributes: gidfdb0e,public X-Google-Thread: 1164f8,cdca3dc8d6167cd4 X-Google-Attributes: gid1164f8,public X-Google-Thread: f7344,a808e23c428d1184 X-Google-Attributes: gidf7344,public X-Google-ArrivalTime: 2002-01-05 18:16:31 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-proxy.baileynm.com!citadel.in.taronga.com!not-for-mail From: peter@taronga.com (Peter da Silva) Newsgroups: comp.os.vms,alt.sys.pdp10,comp.sys.dec Subject: Re: historical evidence of what went wrong at DEC Date: 6 Jan 2002 02:00:07 GMT Organization: TSS Inc. Message-ID: References: <3roT7.207043$tf5.13617499@bin5.nnrp.aus1.giganews.com> <3C338089.1C12E6FA@trailing-edge.com> NNTP-Posting-Host: citadel.in.taronga.com X-Trace: citadel.in.taronga.com 1010282407 25109 10.0.0.43 (6 Jan 2002 02:00:07 GMT) X-Complaints-To: usenet@taronga.com NNTP-Posting-Date: 6 Jan 2002 02:00:07 GMT X-Newsreader: trn 4.0-test72 (19 April 1999) Xref: archiver1.google.com comp.os.vms:58570 alt.sys.pdp10:9151 comp.sys.dec:11055 In article , AG wrote: >Suppose you are developing a program that must read and process a whole >lot of files from a Unix directory which are called *.something_or_other >where the "*" is any valid file name. After processing a file, it must >rename it to something like *.archive (this is a cast-iron spec requirement, >non-negotiable). Is it writing the file during this processing step,or is it just processing it and renaming it to indicate that it's done? >The program is still under development/debugging/tuning so you would like to >be able to re-run it as often as needed with the same set of input files. >But remember? Some (or all) of them have been renamed by the previous >run... The most natural and obvious option would seem to be to just do >some sort of: "rename *.archive *.something_or_other" and off you go (you >could even put that thing on a hot-key somewhere perhaps). Well, what I generally do when testing software that might modify the files its working on is to have a directory full of "clean" unmunged data, and then I copy it to a testbed when I need to do a run. If the operation is non-destructive, which I assume it is or you wouldn't be renaming the files back, I'd use links or symlinks instead of copies. And in any case, I would never put part of the testbed in a hotkey. It would always be driven by a script that could be shipped with the sources. In most cases that script would be a makefile. >For example, the need to write a (even small) script means that the >functionality *is* needed but *is* lacking ... By that logic you should never need a scripting language in the first place. A better test for whether the functionality is needed is how often a script to provide precisely that functionality is created AND used. >[BTW, I don't claim a lot of expertise with Unixes, so perhaps there are >better solutions >than writing a shell script (or using backup/restore;)) but the question was >when/why/how >often you need this. Hope this is a "reasonable" example...] Not really. A good software development testbed is frequently a lot more complex than that. One project I'm working on has scripts to simulate the timing of messages recieved by an application... and it can reconstruct that timing and the original messages by analysing a database and logfiles sent from the field. -- Rev. Peter da Silva, ULC. WWFD? "Be conservative in what you generate, and liberal in what you accept" -- Matthew 10:16 (l.trans)