There have been a few threads in which this was discussed off topic. I thought I would just make a place to continue the debate.
-selket







A programming language is a stylized communication technique intended to be used for controlling the behaviour of a machine (often a computer). Like human languages programming languages have syntactic and semantic rules used to define meaning.
Thousands[1] of different programming languages have been created and new ones are created every year. (see list of programming languages). Few languages ever become sufficiently popular that they are used by more than a few people, but a professional programmer is likely to use dozens of different languages during their career.

PHP is a scripting language. A programming language is something where the result needs to be compiled (like C/C++)


I agree, and additionally I would like to verify my understanding further.Tim wrote:Visual Basic is a runtime.
andSome anonymous contributor to Wikipedia wrote:Visual Basic (VB) is an event driven programming language
That quote block just sort of backs up what I wrote to a slight degree. More references can be found if you like, especially when you consider that Wikipedia is not gospel.Some anonymous contributor to Wikipedia wrote:Although programs can be compiled into native code executables from version 5 onwards, they still require the presence of runtime libraries of approximately 2 MB in size. This runtime is included by default in Windows 2000 and later, but for earlier versions of Windows it must be distributed together with the executable.
Tim wrote:A programming language is something where the result needs to be compiled (like C/C++) while a scripting lanaguge is something which is interpreted (php/perl/etc.).
Alas, Visual Basic blurs the lines when it comes to defining "programming languages" vs "scripting languages", much like Java.Some anonymous contributor to Wikipedia wrote:VB.NET is also a fully-compiled language (as opposed to previous versions which could both compile and interpret the language).


I wouldn't say that PHP compiles to HTML. The output of a PHP script is (generally) HTML, but the "output of a process" is a lot different to "the re-formatting of the original description of the process".isralien wrote:Dunno about programming/scripting language, but I do like it:)
It is scripting because you don't compile it on your machine (except if you're not hosting it), but it's programming because the webserver on the hosting compiles it to pure HTML.
Now what?

pcweirdo wrote:I wouldn't say that PHP compiles to HTML. The output of a PHP script is (generally) HTML, but the "output of a process" is a lot different to "the re-formatting of the original description of the process".isralien wrote:Dunno about programming/scripting language, but I do like it:)
It is scripting because you don't compile it on your machine (except if you're not hosting it), but it's programming because the webserver on the hosting compiles it to pure HTML.
Now what?
For example, a certain C program might output GIF files. That doesn't mean that the C code or any code involved is actually "compiled" to GIF. It just means that the output of that program is a GIF.
-pcweirdo.

Yes; how is that relevant?isralien wrote:You do have a point there, but remember that PHP can edit/create images?

Users browsing this forum: No registered users and 1 guest