Actually, PHP is not really that much of a "highly abstracted language
Let's see...
1) It has GC facilities
2) Loosely typed, variable variables, etc
3) Supports OOP
4) No need to compile or build
5) Uses HTML as a native GUI
6) Dynamic code execution
Perhaps this is all relative, but compared to C++ that's pretty abstract...
I am sure in some adademic circles...some guy/girl has invented a new fantabulous language which more resembles English than source code...which truely abstracts the language...but...
That's where theoretical proponents and pragmatist's collide...
I won't bother going into this right now...
Again, I think the language is much the same as yesteryear and the NIH crowd are probably not using a framework.
According to my list above...not so much...except maybe in syntax, there is little similarities...
PHP takes care of alot of the junk for you...maybe you should spend a couple years programming web pages in C/C++ or assembler so you can fully appreciate all the work that PHP actually does for you
Would you want a carpenter who half way through building your house says, "hey I found a cool new way to frame roofs!" or an electician who "discovered" a better way to wire junction boxes?? What you you think about all the previously done wiring and framing? And about the new stuff as well? There are Best Practices whether you know they exist or not.
So whats your point? I am aware there are best practices...or at least what someone assumingly more experienced than me thinks is best practice...
Code reuse being one of them...I agree...but my point is...PHP will naturally have *less* reusable code when compared to C/C++ and especially low level like assembler...
PHP is abstract...it becomes more difficult to write reusable code in high level languages because of the very nature of it all. One must think more abstract, which is what most developers don't do very well as we are quite pragmatic and logical...
This "thinking outside the box" is an art...
There is tons of re-usable code and the amount is growing.
Fare enough, but again...only because PHP is in it's infancy...as most languages like C++ have tons of encryption classes, etc...
When I said it's more difficult in PHP to write reusable code I meant from scratch...new reusable code...not port existing classes from a successor to PHP.
Thinking that you could build a house without knowing the building code, reading/learning about construction best practices, and first working with an experienced mentor is folly at best.
My point was, the more abstract we become the more difficult it becomes to write/invent re-usable code, as all the obvious are likely done already...
As languages evolve they inherit yesteryear's libraries/techniques which proved useful and generic and become part of a framework or possibly the language/technology itself...
Cheers
