
- You are not logged in. | Login
January 4, 2007 7:25 am
- admin
- Administrator


Discuss article: "21 errors of a PHP-programmer. Part II.php"
You can leave your comments here
Discussed article: "21 errors of a PHP-programmer. Part II.php"
March 30, 2007 11:45 am
- stp2233
- Member


Re: Discuss article: "21 errors of a PHP-programmer. Part II.php"
Your recommendation not to use object oriented programming is really funny. Sure, for the task "hello world" it’s not worth applying. But for a serious project it’s quite the opposite – you are to think about using it – as far as an object oriented code is much easier to support and extend. This is rather considerable advantage in comparison with some loses of speed.
Checking email’s host is completely wrong: for example, email like joe@fgsdh.com is quite possible but site fgsdh.com can be absent at the same time.
March 30, 2007 12:24 pm
- SRG
- Member


Re: Discuss article: "21 errors of a PHP-programmer. Part II.php"
I agree that recommendations not to use object oriented programming are rather harmful. Where are the examples of bad object oriented programming usage? It is used wrongly only by those who don’t understand theory of object oriented programming in general. Just a simple encapsulation of data into classes in PHP enables developer to build clearer model in his mind instead of memorizing mixture of global functions. As an example of wrong OOP usage which I have really observed in some code I can name usage of classes as functions i.e. he has only constructor which does all the work.


