View Single Post
  #7 (permalink)  
Old 03-26-2009, 06:51 PM
kgun's Avatar
kgun kgun is offline
WebProWorld 1,000+ Club
WebProWorld MVP
 
Join Date: May 2005
Location: Norway
Posts: 5,709
kgun RepRank 10kgun RepRank 10kgun RepRank 10kgun RepRank 10kgun RepRank 10kgun RepRank 10kgun RepRank 10kgun RepRank 10kgun RepRank 10kgun RepRank 10kgun RepRank 10
Default Re: Is PHP a powerful tool?

Quote:
Originally Posted by bobitza View Post
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:
  1. Plan your site: U.S. Department of Health and Human Services: Usability
  2. Take a little time to learn code reuse (OOP and design patterns) before you jump on the PHP bandwagon.
  3. 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 View Post
I'm not familiar with namespaces, what exactly are they and where are they used? Are they the same thing as '->' for objects?
No.
  1. -> is the indirection operator.
  2. 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.

Last edited by kgun; 03-26-2009 at 06:58 PM.
Reply With Quote