Path: news.cs.au.dk!news.net.uni-c.dk!uninett.no!uio.no!news.tele.dk!193.190.198.17!newsfeeds.belnet.be!news.belnet.be!skynet.be!poster!not-for-mail From: Atle Newsgroups: comp.lang.beta Subject: Re: Would someone test it? Date: Tue, 28 Nov 2000 18:44:45 +0100 Organization: Belgacom Skynet SA/NV Lines: 84 Message-ID: <3A23EF0D.7EA01C8A@skynet.be> References: <8vun5o$7dh6c$1@gjallar.cs.au.dk> <3A23ABC1.47D693CA@skynet.be> NNTP-Posting-Host: dialup283.charleroi.skynet.be Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: news1.skynet.be 975428676 28023 194.78.236.155 (28 Nov 2000 16:24:36 GMT) X-Complaints-To: abuse@skynet.be NNTP-Posting-Date: 28 Nov 2000 16:24:36 GMT X-Mailer: Mozilla 4.72 [en] (X11; U; Linux 2.2.14 i686) X-Accept-Language: en Xref: news.cs.au.dk comp.lang.beta:12662 Stephan Erbs Korsholm wrote: > > Hello, > > The experiment, > > I've now tried out the programs successfully. The distribution > contained, > > - somesympts.txt > > Some data in a textual format. > > - gensympt.bet > > A beta program that reads the data from 'somesympts.txt' and > inserts it into a PostGreSQL database. > > - listsympt.bet > > A beta program that scans the PostGreSQL database and prints out > the contents. > > - pqlib.bet > > A beta library that supports an interface to the PostGreSQL > database server. These are parts of what will later become 'Acubase' the system for acupuncture diagnosis and treatment. > (sek@brage.mjolner.dk) ~/atle> ./listsympt > ---------------------------------------- > Contents of database > > 1, 1001, Headache > 2, 1002, Pain in lateral > 3, 1003, Headache & pain in back of neck > 4, 1004, Headache involving top of head > .... That's it! This means that it runs on one more randomly chosen Linux system. 50% more chance of it running on all! A great thanks! > > Discussion, > > Two hours ago I did not know what PostGreSQL was. Still it was > surprisingly easy to find, download and install. The beta interface > you've made for PostGreSQL seems very simple and straight forward. I > did not know it was this easy to save and retrieve data from a > relational database into beta programs. Actually, what makes PostGres a little special is that it is also 'Object-Relational' - I have skimmed the docs to find out exactly what that means, apart from an 'INHERIT' statement ... it seems very easy to implement database stuff with this combination ... > > Other comments, > > You write the terminals of the beta language in capital letters. I am the quinessential newbie. I know the amount of Beta that you have seen, no more. I thought it looked 'neat' - but I will *immediately* get rid of any bad habits, if uppercase looks 'weird' then me writing in uppercase is a bad habit. I did it simply because I am a C programmer, and it gave me a 'non-C' experience. I have no sensible reason at all for doing so. > > The indentation of the source files indicate that you did not use the > 'mjolner' editing tool for creating the source, why is that? I run Linux and LessTif, and sometimes, every now and then, without any way of reproducing it, mjolner dumps core. The documentation warns against this, since it is a LessTif thing, so I use two editors, one called Nedit, and one called fte. I have created syntax files for both, and now I exclusively use fte. I simply don't have the courage to learn a new programming language, test lesstif, test mjolner and try to develop Acubase at the same time :-) I like the mjolner tool, but I think I need a more robust Motif to run it. > > Alternatively, you can also use emacs which comes with a beta-mode > that will make your programs look really nice, and if you insist on I have been wanting to learn Emacs for several years ... it is still on my list somewhere ... > writing the terminals in capital letters, I'm sure you can have emacs > recognize them for you and capitalize them. Not at all! I will change that if it looks strange.  Any comments on the logic in the program? It took me a while to figure out the T.reset thing, I got these EOS dumps ... I try to be consistent with variables, to let procedure patterns start of with a lowercase, then mixed case, and to let passive objects start off with uppercase. The externals I kept like the entries to libpq, since it is case-sensitive ... And a great thanks for testing it! Atle