Re: [Ftnpl-develop] pkt2txt.pl
Brought to you by:
jame
|
From: Russ J. <ru...@di...> - 2001-08-24 06:03:13
|
Well, I've completed the first working version that doesn't overwrite it's previous runs. I've also put that version up on sourceforge, and I've set it up on my system to toss messages, in parallel to bbbs. I'm sure there's an easier way to get the high message number, and if we do eventually put messages in mySQL, that will be moot, since you can simply have an auto-increment counting field. I'd like to see what you do with the getopt module. I was planning on adding HTML to pkt2txt, as an option. I see a problem if the code branches. What I think would happen is that features will get added to one script, and then have to be ported to the other script. If it becomes pkt2html, I'd like to keep the option to generate plain txt. Since the only real difference will be the output, I don't think it makes much sense to maintain two scripts that will be 80% identical code. On the other hand, if the end goal is to have a package of scripts, then it might be a good idea to modularize. But that would be down the road. I'm also going to add another file to our repository. It creates the HTML pages for my file areas. I didn't write it, but I have the authors permission to distribute it as I see fit. Some of what he did in there would be directly portable to pkt2html. Oh, and I do have the importing of files down with CVS. Today was quite a learning experience. Since I have a code of the cvs tree here, things are synchronized. Assuming you update pkt2txt prior to my working on it again, would I just download a new copy prior to working on it again? Should we be "locking" the file when we're actively working on things? I'd hate to overwrite what you add or vice versa. At 01:06 AM 8/24/2001 -0400, you wrote: >Hi Russ! > > > OK, I've got a good working copy now. I'm really going to be working on >the > > message counting stuff. > > You work on that (since I still haven't quite figured out how you're >doing it...<g>); I want to fix/enhance the command line parameters for it, >by changing it over to useing the Getopt module... I got it working on my >scripts, so I've had practise...<g> > > > >I'd like to at least get to a "read only" version soon that writes web >pages. > > Oh, I agree; that would be quite useful! But it does bring up the >question of how to do that? I see two main ways of doing it; one way >would be to extend the existing pkt2txt.pl script once it's working, & the >other would be make a separate script once the pkt2txt.pl script is working >fairly well... > > My preference would be to make it a new script, starting off from the >working pkt2txt.pl script, & call it pkt2html.pl. (And I would like to do >the initial import of it, if you don't mind...<g>) Several reasons for >keeping 'em separate, but one main reason for me is I have a preference for >programs that does one well defined thing as well as possible... True, >basically there isn't a lot of difference between outputting text & >outputting html; but in actual usage there would be & I think that they >would develop in different ways... For instance, I see the pkt2txt.pl >script as more of a diagnostic tool than as a production tool; whereas >something like a pkt2html.pl script would definitly be a production tool... >And with different purposes, they would see different development... > > > > >Jame > > > > >_______________________________________________ >Ftnpl-develop mailing list >Ftn...@li... >http://lists.sourceforge.net/lists/listinfo/ftnpl-develop Russ Johnson Stargate Online http://www.dimstar.net telnet://telnet.dimstar.net ICQ: 3739685 |