| grumpy |
Aug 25th, 2006 5:54 AM |
Pascal was actually used as a teaching language by universities when they cared about teaching the basic programming concepts rather than having people get bogged down in syntax --- because the syntax is relatively simple, if picky, and even minor violations (which are often a sign of programmer error) result in bitter complaints from the compiler, etc etc. Nowadays, it is relatively rare for universities to teach pascal as they now get onto bandwagons for latest and greatest languages. Personally, I consider that the quality of programmers has gone down overall as a result of that (not specifically because pascal is now rarely taught, but because a lot of software engineering courses now spend a lot more time learning syntax of a chosen language rather than basic design principles). Most people, when learning a new programming language, now devote most of their effort to learning syntax of the new language rather than techniques which the new language supports --- which is exactly the wrong thing to do.
If you're a beginner who is interested in learning the basic programming techniques, rather than worrying about syntax, then pascal is a good choice. If you just want to be able to throw together programs quickly, Pascal is not a good choice as it requires thought to program correctly (and effort to get the code past the compiler). This limits the utility of Pascal for large systems, and is why Pascal is less popular than some other languages for commercial use. Certainly, when I used Pascal (no, it wasn't my first language), the program eventually grew to the point where the effort of getting the syntax right for small changes exceeded the benefits of those changes --- or, to put it another way, once the program passed a certain size it became a pig to maintain. That said, some significant commercial developments were done with Pascal --- the majority of both applications and the operating systems themselves on early Apple Macintoshes were written in Pascal.
Notably, Pascal compilers are relatively simple to implement (certainly much simpler than compilers for other languages, such as C, C++, and Fortran) so it is easier to get the compiler correct.
There are a number of derivatives of Pascal which don't have all the weaknesses of Pascal, such as Modula-2 and Oberon. Borland's Delphi (for rapid application development, particularly with GUI) is an object-oriented derivative of Pascal --- and, notably, the first versions of Visual Basic were specifically designed by Microsoft to compete with Delphi. While the Ada programming language is not formally a Pascal derivative, both the language design and syntax are strongly influenced by Pascal.
|