Path: news.cs.au.dk!not-for-mail From: Sascha Kimmel Newsgroups: comp.lang.beta Subject: Re: I feel a bit discriminated Date: 19 Jun 2000 13:55:33 -0000 Organization: University of Aarhus, Department of Computer Science (DAIMI) Lines: 113 Approved: mailtonews@cs.au.dk Distribution: world Message-ID: <20000619135533.4331.qmail@noatun.mjolner.dk> Reply-To: Sascha Kimmel NNTP-Posting-Host: daimi.cs.au.dk X-Trace: xinwen.cs.au.dk 961422954 283429 255.255.255.255 (19 Jun 2000 13:55:54 GMT) X-Complaints-To: news@cs.au.dk NNTP-Posting-Date: 19 Jun 2000 13:55:54 GMT Xref: news.cs.au.dk comp.lang.beta:12425 Atle said: > Sascha Kimmel wrote: > > > > > I will do, because you can use Perl without compiling, which is especially > > useful for webserver programming. > Couldn't you build something on top of gbeta? > Unfortunately, I know very little about web-programming, I have a PHP3 book that I will have to read one of these days ... but it > can't be much different from how you deal with these things in Java? Oh oh oh, don't mix up PHP and Java! Java is a language whose code needs to be compiled, PHP is a script language as Perl. In JAVA you need to import and import and import and import until you have all classes together, in PHP all base functions are automatically available and if you need external files, no problem: include "myfile.php"; require "myfile.php"; > A sort of Beta applet? .. or servlet! > Of course, since I know so little of web-scripting, I may be confusing the server side with the client side. Server vs. Client! > But I am positive that the Beta language in itself would be ideally suited for webserver programming, since it is for all kinds of > other servers, and a webserver is just a specialization of > > webserver : server(# (*whatever a server is*) #) No, BETA is NOT suited for webserver programming, if you compare BETA to PHP e.g. Perl REGEX are not available until now and the MOST things you're doing when programming the CGI is handling from data, normally text, which has to be parsed, filtered, cleaned, compared, saved, loaded and so on :) Have a look, here is some code from the PERL script I'm just working on: --------------X<--------------------------------------------------
Woche vom EOF # Startdate print "\n \n \n"; --------------X<-------------------------------------------------- In BETA it is IMPOSSIBLE to concatenate strings as in the most scripting languages, which is mostly because BETA does not have a special character for variables like "$", which Perl and PHP use, so something like the following is impossible with BETA: $thisstring="this"; $string="Have a look at $thisstring, and afterwards have a look at $thisstring!"; In BETA you would need to do this the follwing way: 'this'->thisstring[]; 'Have a look at '->string[]; thisstring[]->string.append; ', and afterwards have a look at '->string.append; thisstring[]->string.append; '!'->string.append; These are six lines in comparison to three lines in Perl! You can also use BETA REGEX (which is POSIX syntax) but because nobody :) wants to use POSIX syntax and all :) people want to use PERL syntax this is not used often I guess. > But I don't know Perl either :-) Oh, that's defintely a problem :) Regards, Sascha Kimmel