Quote:
Originally Posted by bobitza
kgun, I'm not sure I'm getting the right idea here. Care to elaborate on your quote?
|
I think you shall not take the statement literally, but with a grain of salt. As I interpret the statement:
- Plan your site: U.S. Department of Health and Human Services: Usability
- Take a little time to learn code reuse (OOP and design patterns) before you jump on the PHP bandwagon.
- At least to get an idea of what is possible with PHP.
A cynic would say that it is ads for his book.
Quote:
Originally Posted by bobitza
I'm not familiar with namespaces, what exactly are they and where are they used? Are they the same thing as '->' for objects?
|
No.
- -> is the indirection operator.
- Namespaces, the simple explanation is, a mechanism to avoid name collisions. Example: You use an external library in your applications. If that library has classes with that same name as your own library, you can have name collisions. Name spaces are used to avoid such collisions. Look up the PDF document in the last link in my signature for more about name spaces in C++ and a central reference.