Article View: news.software.readers
Article #261677Re: Ping Bernd Rose: How do you set and define a variable in 40Tude Dialog
From: Stijn De Jong
Date: Sat, 07 Jan 2017 21:14
Date: Sat, 07 Jan 2017 21:14
183 lines
9450 bytes
9450 bytes
On Sat, 7 Jan 2017 09:47:01 +0100, you wrote: >> In fact, I had already given up on Dialog scripting (and said so), BEFORE >> JJ posted his modified script on pastebin. > > If that's the case, then getting the script written is of course the best > outcome from *your* POV. Whether JJ will have the time and strength for > continuous error correction and support for you /and/ others (who might > want to use such a script, as well), has to be seen. Yet again, there is absolutely nothing you say that I don't already agree with, in that a. I first tried to combine scripts using algorithmic intuition b. But I was soundly defeated by the diabolical Dialog syntax c. Luckily, where I failed, both you and JJ came to the rescue of all The result is that we all (including you) now have a working script that is far more powerful than any script like it on the Dialog code library. I based that assessment of this script being worlds more powerful than any like it on the Dialog code library after looking at EVERY similar script in the code library (none of which do what this script does and only some of which do some of what this script does). Since this is easily and provably a far more powerful and versatile script of any like it on the Dialog page, it has value over and above that of the similar scripts from which it was originally composed of. This is all as it should be, adding value at every turn. >> We got something done with Dialog. >> And, we improved the code base for Dialog, so others can use it themselves. > > When Dialog script development was at his heights, at least 5 people who > were firm with that subject tested and fine-tuned the scripts, until they > "released" them in script libraries. (Please note, there hasn't been an > /official/ script repository for nearly 10 years. All available download > sites are personal-preference sites with varying degrees of code-check.) > The script development mainly occurred inside the German Dialog newsgroup. > Nowadays, there's rarely a post on that subject. Most script developers > moved on, at least one of the most productive ones is dead by now. :-( I understand what you're saying, even as I didn't know the details. It was clear that Dialog was not being actively developed, simply by a search of this newsgroup prior to my posting (in Google's deja vu interface). The script repository where the two original components came from is: http://dialog.datalist.org/scripts/script_library.html Another script library (although tiny in comparison) is apparently: http://www.elbiah.de/tools/dialog/ This seems to have a wider geographic scope: http://www.wolfgang-bauer.at/4td_faq/links.html Here is another seemingly incomprehensible 40tude dialog library: http://larrainelaaril.ga/40tude-HTML-573.php NOTE: There are many others like that one which are so incomprehensible as to consist of some kind of joke or spam or something: http://bonitapruettaj8oh22.ga/40tude-HTML-4945.php http://virgenfeatherm7d2s7.gq/40tude-HTML-4975.php http://johnsontotmanexj5yf.ga/40tude-HTML-4761.php > While releasing new scripts in test-state here in this group may seem to > be a step forward, chances of significant code-check and testing are > marginal. (I, for instance, currently just don't have the time for such > matters.) With most scripts, publishing unpolished versions isn't too > problematic. They may lead to problems on local installations. And that's > about it. With OnBeforeSendingMessage scripts, OTOH, the results may - > at worst - crash some receiving servers, if the message gets malformatted. > And are you /sure/ that the last version will work with any kind of mail > message, including headers in need of encoding, duplicated "headers" in > the body, encoded attachments, encrypted mails, and so on? You bring up perfectly valid points, which can be summarized by the ancient Justinian law code of "Caveat Emptor". There is one and only one defense when receiving free stuff and that is that you take a calculated risk whenever you receive free stuff. Luckily, this free stuff is relatively innocuous, but caveat emptor still holds (e.g., we could have inserted a clever virus into the code). BTW, this ng is "news.software.readers", so, it is just about the best place on the planet that we should strive to discuss such code, is it not? > And some parts of the code /need/ to be polished for usability. Published > scripts shouldn't carry user-specific settings deep down in the code, like > your aioe/albasani-test. Once again, I completely agree with you that user-specific settings should be in the header and not buried deeply down in the code. The funny thing is that we didn't change the code. We merely included the "as official as it gets" official Dialog scripts into our code. So, what you're really complaining about is that the official Dialog library of code contains scripts which have user-specific settings buried deep down in the code. I can't disagree with you in the least. a. The original code in the Dialog library had buried settings, hence, b. Our use of that original code didn't change the depth of those settings. We completely agree on the problem, but the "blame" (if we are to assign blame) must go to the original developer, and to the people who published that original code in the Dialog library. I'm not going to blame them; I'm going to THANK them, so, I'm just responding to your perfectly valid code-construct comment that user settings shouldn't be buried deep down in the code. Hence, I agree with you. But I don't have the technical ability to fix that problem. And that problem existed in the original code anyway. > If you browse through well-written scripts, you'll > notice a "settings const section" at the top or (sometimes) even the usage > of an external settings file. You are completely correct that 'well written' scripts would generally put user-defined variables in the header section. What that means is that the scripts we pulled off the Dialog Library weren't well written (and I knew that because they didn't work anyway). They worked even less when I put two of them together. And that was my *starting* point! > Coming to this: Why only two possible mail > servers in a script published for common use? Why not start with a list > (or better: an array/dictionary of server/identity pairs), to begin with? Actually, what you're complaining about here is a classic case of "no good deed ever goes unpunished". :) The original code is here: http://dialog.datalist.org/scripts/CheckingIdentity.html What do they use for identity, server and newsgroups? The problem with *that* script is that nobody knows what to put for the "server1" name. I guessed "nntp.aioe.org" but that didn't work. I then guessed "aioe" but that didn't work. I finally realized that the server name is whatever you have listed in "Dialog: Settings > Servers,Identities,Signatures > Newsservers > Available Servers" column. So what did I do? I put a comment in the code that explains that. So, in effect, the code that I published is *better* than the code that was in the script library, in that a real-life real-world example was given. It was, however, just an example. So in this instance, I can only say that you wouldn't have complained about this if I had brought it back to 'server1', but that you're only complaining because I called it 'aioe_119' to provide an example for the user. No good deed ever goes unpunished, so I take your complaint in stride. :) > The same goes for newsgroups... In the case of newsgroups, I agree with you more than for the case of servers, only because newsgroups don't require an example, whereas servers do. Remember the original code simply said "ng1" and "ng2", whereas the code here at least provides syntax-correct examples (bearing in mind that Dialog syntax is utterly diabolical). >> So the real tradeoff was between: >> a. Giving up on getting Dialog to do anything, or, >> b. Using JJ's script (testing it, tweaking it, & re-publishing it). > > *Your* tradeoff. If you like, I can further genericize the script, by removing all the examples. Would that be better?
Technical Details
Message-ID:
<o4rlog$1j7o$1@gioia.aioe.org>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.(126883).mbox.7z!not-for-mailReferences:
<o4bg7v$t51$1@gioia.aioe.org> <1xmerwn6hkw2o.dlg@b.rose.tmpbox.news.arcor.de> <o4cbjs$4pc$1@gioia.aioe.org> <w4daz9t9jqbr$.dlg@b.rose.tmpbox.news.arcor.de> <o4mq1e$2u7$1@gioia.aioe.org> <1k5qgdg6ulbzp$.dlg@b.rose.tmpbox.news.arcor.de> <o4pna9$9u9$1@gioia.aioe.org> <11rcu0h87cvsa.dlg@b.rose.tmpbox.news.arcor.de>Show Full Headers
Complete Article Headers
Message-ID: <o4rlog$1j7o$1@gioia.aioe.org> Subject: Re: Ping Bernd Rose: How do you set and define a variable in 40Tude Dialog Date: Sat, 07 Jan 2017 21:14:57 +0000 From: Stijn De Jong <stijndekoning@nlnet.nl> References: <o4bg7v$t51$1@gioia.aioe.org> <1xmerwn6hkw2o.dlg@b.rose.tmpbox.news.arcor.de> <o4cbjs$4pc$1@gioia.aioe.org> <w4daz9t9jqbr$.dlg@b.rose.tmpbox.news.arcor.de> <o4mq1e$2u7$1@gioia.aioe.org> <1k5qgdg6ulbzp$.dlg@b.rose.tmpbox.news.arcor.de> <o4pna9$9u9$1@gioia.aioe.org> <11rcu0h87cvsa.dlg@b.rose.tmpbox.news.arcor.de> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.(126883).mbox.7z!not-for-mail Newsgroups: news.software.readers Organization: Aioe.org NNTP Server Lines: 183 NNTP-Posting-Host: hfOAoZlqGeFs4SUbLxBJ8Q.user.gioia.aioe.org X-Complaints-To: abuse@aioe.org X-Notice: Filtered by postfilter v. 0.8.2 X-Received-Body-CRC: 4017195847 X-Received-Bytes: 9415