From Chris Neale · 1996-04-06 02:04 · #69251 in DRIVING
Hi Jon, Apologies in advance if this is the second time you've received this message - but a mail file corrupt on me and I'm not sure whether or not this reply ever got sent! JW>Recently I've been getting very interested in learning to program in HTML, JW>Perl, or Java. Does anyone know which of these is a) the easiest; b) in the JW>best position for the future; and c) the most powerful. Well, HTML is not really a programming language as such. It's actually a markup language for ordinary ASCII text. Codes, or tags, are placed before and after a piece of text to give that text certain attributes. For instance, if I wanted to make a certain piece of text bold, I would surround it in the tags <b> and </b>. eg. <b>Bold!</b> The <b> turns it on and the </b> turns it off again. It's relatively simple to write, and attractive documents can be produced quickly. Nevertheless, to make use of some of the advanced features you need to spend a fair amount of time trying things out to perfect them. The joy of HTML is that it is not compiled. The tagged document is simply viewed in a browser like Netscape and Mosaic which converts the tags to real attributes. And not only that, but as the "code" isn't compiled you can view the source of other peoples documents to see how they did it, thus improving your own knowledge of its features. Basically it's very easy to program, requiring only a copy of Notepad to write the code and a copy of Netscape to view it. It is already the standard for online document presentation, and is can be used to produce very attractive and effective Web Pages. However, that's all it can do. Produce docuements. You may be able to ask for user input with the system, using text boxes and buttons, but you are unable to process this information with HTML alone. There are two main ways of processing the information gained from a user. The first is CGI and Perl scripting. I am not particularly knowledgable about the workings of either language, but am aware that they process instructions on the server. The information entered through an HTML text box is sent by the document back to the server which feeds it into the CGI or Perl script. These are both programming languages, and can manipulate the information and pass results back to the user. Search engines are an example of this sort of thing. You enter a word, and the information you enter is sent back to the server where it is processed, sending you back a list of relevant web pages. This is all done on the server machine thanks to Perl (or in a lot of cases CGI) scripting. It is likely that CGI and Perl will be around for a long time to come. Again, it is a standard, and is well established as a scripting langauge for Unix based systems. As I say - They are langauges. Perl is much harder to write than HTML, and requires quite a bit of time before you start getting proficient. Also, you could really do with access to a Unix system to develop your skills. You may not want to fork out for a Sun Unix Workstation, so I recommend Linux - It's freeware and comes on about 4 CD's for a good specification PC. The software for it is likewise free and comes with Perl and C++ as standard. It should only set you back around L20 for the CD set, a good bargain when the source code and documentation on the system is included. Another way information can be processed is with Java. Java is a programming language derived from C++. Unlike CGI and Perl which process information on the server machine, Java lightens the load by downloading the code and running it on the client machine. Java is incorporated into an HTML document using the <APPLET> tag. This downloads the specified Java applet when the page is viewed and then runs it on the users own machine. The code downloaded is able to run on any machine, whether it is a Mac, a Unix system, a VMS system or a PC or any other computer running a port of a Java browser. The code is compiled by the author into a sort of middle-code. This is downloaded by the user and then interpreted by the browser which passes on the relevant instruction to the processor. The code is still rather slow due to the penalty of using an interpreted language. Nevertheless, on a recent visit to IBM I was told not only that Java chips are being devised which should speed programs up, but that a team of engineers are working on a new system which would download the code and compile it to native system code !before! execution rather than on the fly. Although Java is quite hard to write - it's object oriented and has close ties with C++ - it is likely to become the standard of online programming. Microsoft have recently licensed themselves a copy to incorporate into BlackBird - their network developement tool - and other companies such as IBM have followed suit. It is a safe language too, so Java viruses are almost an impossibility. It is very powerful and is in a very good position for the future. If you want to start programming in Java you will need a copy of Netscape Navigator Version 2 and Netscape's developement kit including libraries and a compiler. At present neither of these items are available for Windows 3.1, although versions exist for all the 32 bit operating systems including Windows 95, NT, Linux and other Unix strains. The two tools are also shareware and can be downloaded from the Sun Microsystems site. You could also do with a good system - 486DX2 or above with preferably 16 megabytes of memory and going up. As far as learning how to code Java is concerned, you could do with buying a book. The Java reference manual has recently been released by Sun, which although a brick, should help you get started with Java and from there progress onto more advanced levels. Internet resources are good on the whole, especially those provided by Sun Microsystems who developed the system. And if you need help with understanding some of the concepts involved, there are several newsgroups scattered around with plenty of professionals willing to help. I can really recommend getting a Java browser and compiler for Linux, both of which won't set you back more than the price of a phonecall to download them. I then recommend getting a copy of Slackware Linux, considered by many to be a good distribution. Mainly because it is very cheap at L20 for the 4CD set and comes with all the mainstream programming languages as standard. Perl and CGI are thrown in as well, so you will no doubt be able to pick them up if you feel the need. Hope this is of some help to you, Cheers, Chris --- * OLX 2.1 TD * He who laughs last is at 300 baud --- WILDMAIL!/WC v4.12 * Origin: Ooh! BBS, London [MULTILINES] 0181-395-3108 (2:254/233.0)