Received: with LISTAR (v1.0.0; list gopher); Sun, 21 Jan 2001 22:26:47 -0600 (CST) Return-Path: Delivered-To: gopher@complete.org Received: from gtei1.bellatlantic.net (gtei1.bellatlantic.net [199.45.40.145]) by pi.glockenspiel.complete.org (Postfix) with ESMTP id 9BD6D3B802 for ; Sun, 21 Jan 2001 22:26:46 -0600 (CST) Received: from mothra (adsl-141-152-12-101.bellatlantic.net [141.152.12.101]) by gtei1.bellatlantic.net (8.9.1/8.9.1) with ESMTP id XAA12902 for ; Sun, 21 Jan 2001 23:26:13 -0500 (EST) Received: from x by mothra with local (Exim 3.20 #1 (Debian)) id 14KYRs-0003jl-00 for ; Sun, 21 Jan 2001 23:19:20 -0500 Date: Sun, 21 Jan 2001 23:19:20 -0500 From: David Allen To: gopher@complete.org Subject: [gopher] ASK blocks in practice Message-ID: <20010121231920.A14344@mothra> Mime-Version: 1.0 Content-type: text/plain; charset=us-ascii User-Agent: Mutt/1.0.1i Content-Transfer-Encoding: 8bit X-archive-position: 127 X-listar-version: Listar v1.0.0 Sender: gopher-bounce@complete.org Errors-to: gopher-bounce@complete.org X-original-sender: s2mdalle@titan.vcu.edu Precedence: bulk Reply-to: gopher@complete.org List-help: List-unsubscribe: List-software: Listar version 1.0.0 X-List-ID: Gopher List-subscribe: List-owner: List-post: List-archive: X-list: gopher Hey guys, just wanted to throw out some questions. Does anybody actually use ASK blocks in practice? I've been playing around with them under UMN gopherd, trying things out, but I don't seem to be able to find any in the wild. One of the things that troubles me about them is that the program that deals with the resulting ASK data has to know what format it's going to be in before it starts, which limits the ability to use one program to process multiple sets of ASK data. The way UMN does it currently, you have a file called "foobar.ask" and a file called "foobar". The file with the .ask extension contains a mockup of the questions you want to ask. Example: Note: Here is a note to the user Ask: What is your email address? Choose: Are you: M F AskL: Comments? If I entered "foo@bar.com", male, and my comments were (on two lines) "foo bar" then the program would be passed this data: foo@bar.com M 2 foo bar It seems to me that it would make more sense if the .ask file had a field in it that associated a particular script with the handling of the data reaped from the user. This would allow multiple ask blocks to point to one script without forcing you to make a symlink farm. But at the same time, again you have to know the format of the data. For example, when you encounter an AskL field, the server writes the number of lines in the field, linebreak, then the actual data. But without knowing that there was an AskL field, your program has no way of knowing that the "2" in the above example wasn't the answer to a simple entry. Do you guys think that ASK stuff is even worth the effort to extend? What are the other options available? Are any of you using ASK blocks for anything? -- David Allen http://opop.nols.com/ ---------------------------------------- There's never time to do it right, but there's always time to do it over, but we want to do it over first. Or something like that. -- Larry Wall, at ALS talking about perl6