Quote:
Originally Posted by mtishetsky
In php5 OOP is done pretty well.
|
Only if you're comparing it to PHP4. Compare features to a language like Objective-C and you will see just how crippled PHP's implementation is.
Quote:
Originally Posted by mtishetsky
I cannot definitely say about performance degradation, but the development speed-up is obvious.
|
Writing in an object oriented fashion will generally harm performance, simply because of the focus of the coding. This only holds true if your comparing it to very well written and maintained procedural code. However, as procedural code grows with later additions, you'll likely find yourself using ugly hacks and workaround, and probably introducing whole new bugs and slowdowns. This is when OO methods begin to shine. You're also correct that the development speed-up is obvious, especially if you're not the only one working on the code.
All of that being said, I love object oriented code, and PHP is making good improvements in this area, but still has a LONG way to go.
|