|
|
The tao of programming
toucheatout 2006-03-26 04:12 Programming
Presentation of different types of programming conceptsChoosing a language somehow formats the way one codes. But also does concepts that define ways of programming (and often qualify a language).
Presentation of different types of programming languagesScripting with phpPHP (PHP = PHP: Hypertext Preprocessor, yet another recursive acronym) is by far the most popular scripting language for building web dynamic content (such as this site). It has a good reputation for its behavior with databases (mysql being the most famous). This is an interpreted language, giving much power in terms of flexibility and code readability, but pays the price with execution (eaccelerator and other caching mechanisms make it faster). Usually for the simple processing tasks it has to deal with, combined with nowadays cheap machine resources doesn't make it overwhelmingly uncomfortable. Programming with javaJava's main advantage also is one of its drawbacks: it is an (semi-)interpreted language. It needs a java virtual machine to execute the java bytecode. That is to say you have to compile it then interpret the resulting code on a virtual machine. The advantage is that bytecode does not need to be recompiled to run on another platform. Instead of compiling N programs on X architectures (N*X operations and an inconvenience on every platform), you compile it once and then have to get X virtual machines (that is N+X operations). Deployment is greatly facilitated. Good starting points for programming in java can be found at java.sun.com, and for feature-rich IDEs netbeans or eclipse. In another site's article, those interested in GUI building will find some practical code samples and explanations using swing. Programming in CThis is one language that is one of the most low-level by nature and henceforth one of the fastest to run. It is compiled into assembly code, readable by the processor directly. However, the speed comes with drawbacks as well (harder to debug, very dry APIs, more code to write for the same result, details do matter alot). The cycle of coding-compiling-running is also longer than just coding-running as for interpreted languages. tutorials and stuff at www.cprogramming.com. Other programming languagesThere are a big lot of programming languages around, especially for interpreted and compiled languages. The most widely used (in my eye's view) Other scripting languages of interest
Other compiled languages of interest
|
|