OOP
Moderator: General Moderators
OOP
Why does most of people think OOP is not really needed in PHP??? I think there are very usefull.
I think it also depends on from where you arrive at PHP. Prior to PHP I was a C++/Java programmer most of the time, so I'm used to thinking in objects. As my biggest/ongoing PHP project is my Master's thesis I wanted to do it "right"; to me this meant a OO based design (especially as the non OO prototype became too unwieldy). Because my code is part of a thesis I feel its important to do as much as possible according to the canonical "good software engineering practices." As the expected maximum load is quite small compared to most sites, speed is not a huge issue so it tends to lose in most trade-offs. If I were developing a large community site, I would likely make very different choices.
OOP will ultimately become the preferred design paradigm in software and web application design and development.
I'm working on moving all my PHP development to an OOP paradigm, it's just more organized and scalable.
I'm very eager to see how far PHP 5.0 goes towards a fully OOP language.
I imagine PHP will always allow a procedural way of programming, but I'd love to see a JAVA like implementation of OOP in PHP.
Were ZEND to move PHP to an entirely OOP paradigm we'd have a situation akin to VB developers trying to upgrade their apps. to VB.net ( VB-7.0 ).
The learning curve for newbies would also become much steeper.
That would be a challenge!
I'm working on moving all my PHP development to an OOP paradigm, it's just more organized and scalable.
I'm very eager to see how far PHP 5.0 goes towards a fully OOP language.
I imagine PHP will always allow a procedural way of programming, but I'd love to see a JAVA like implementation of OOP in PHP.
Were ZEND to move PHP to an entirely OOP paradigm we'd have a situation akin to VB developers trying to upgrade their apps. to VB.net ( VB-7.0 ).
The learning curve for newbies would also become much steeper.
That would be a challenge!
- hob_goblin
- Forum Regular
- Posts: 978
- Joined: Sun Apr 28, 2002 9:53 pm
- Contact:
I wouldn't mind the learning curve being steeper... I mean, alot of little script kiddies that instant messenge me every day with php questions - they think its as easy as html and once they can write a counter they tell me how 'good' they are.. php is very complicated and deep once you get to know it, and people abuse that 
Hmm that makes me think... Is PHP a "gateway" language, getting the "innocent" hooked and possible interested in learning other languanges? 
I suspect the PHP core developers/Zend will always strive to keep the languange simple and I doubt it will ever evolve to a pure/strict OOP model. However, I suspect that they continue to improve the object model as time goes on so that those who want it will have it.
So hob_goblin will still get all the script kiddie IM's
, but we'll also have deeper crevices to explore and exploit. 
I suspect the PHP core developers/Zend will always strive to keep the languange simple and I doubt it will ever evolve to a pure/strict OOP model. However, I suspect that they continue to improve the object model as time goes on so that those who want it will have it.
So hob_goblin will still get all the script kiddie IM's