NogDog;10915390 wrote:Just a note: PHP is, in fact, a compiled language, not an interpreted language. The difference from something like C is that (in normal use) PHP is run-time compiled (as opposed to development-time compiled?). The last interpreted language I used was BASIC back in the late '80s. (Perl is another run-time compiled language.)
The same can be said of Java depending on your "interpretation"?! (pun intended) 🙂
You trade some overhead performance due to having to compile each script each time it is executed (assuming no buffering/caching/whatever mechanisms) in exchange for easy program portability. You also probably trade some run-time performance as the compiler is likely optimized for compilation speed versus executable optimization. But functionally I can see no reason to say that PHP is not a "real" programming language.
And thus the debate...
Like most people I know, I don't consider a scripting language to be a fully-functional language. That doesn't make PHP any less good at what it does, but it clearly is not in the same category as C, C++, Java, or a lot of other programming languages.
Whether or not it is the best language for any given purpose is certainly debatable, but defining a language as real or not simply because you would not choose to use it for certain purposes is somewhat specious, to me.
It is a matter of classification. I think people take it too personally.
HTML is not a "programming language" in my mind, yet it is a "markup language".
Is COBOL not a "real" programming language since you probably would not use it for creating a missile guidance system?
COBOL is a real programming language, and in fact, probably is used by the Dept of Defense more than you think. (Most of the BIG stuff in this world still runs on Mainframes.)
Is Fortran not a "real" programming language because you probably would not use it for an e-commerce web site?
FORTRAN is a real programming language, and in the past was used a lot by places like NASA. Is it a best choice for Amazon.com, well of course not since it isn't a web-based.
Is Java not a "real" programming language because you probably would not use it to write Windows printer drivers?
Java is a real programming language, and you could use it to write drivers.
I don't know what to say. I think there is a very clear difference between scripting languages and regular programming languages. And while the line is blurred as PHP adds more things like OOP, ther is still a pretty clear division.
There are probably lots of people I know who could do a better job explaining the true differences - although I thought I did okay - but I never knew this was a debatable topic? 😕
I know a young girl who dropped out of high school who is convinced that getting a GED online is exactly the same as sitting in a classroom and graduating from high school with her peers. To her there is no distinction, but to everyone else it is clear that they are not the same thing.
Fortunately, using PHP never hurt anyone! 😃 And, if you want to build really cool websites like I do, then it is one of the better choices. (Even though it is still just a scripting language.)
(I used to get harassed - to no end - by Microsoft people on another usergroup who were CONVINCED that MS Access and SQL Server were 100% EQUAL to something like DB2 and Oracle. What can you say in those cases???)
Anyways, I'm not taking any of this personally or spinning my wheels, so I sure hope that no one else is...
Amy
🙂