Posted by Joe Scylla on 05/29/07 13:42
Gregor wrote:
> This is partially an opinion question. I have some modularization for my
> main site using vanilla PHP. I'm a one-man operation.
>
> Is there any major benefit to learning and using OOP? I have lots of other
> stuff to be spending my limited intelligence learning.
Well, all depends on your limited time.
There *are* alot of benefits learning OOP like more reusable and
manageable code, you will be able to create better code and the ability
to create more stable and error proof code.
I don't like the "glasses"-analogy because it's not only useful if you
*need* it. Things can be useful also if you don't need it to fulfil your
task.
The negatives are that you can create some nasty bugs with OOP
especially on more complex projects. Also some programmers tend to
overuse OOP. There's nothing wrong with functions and some procedural
programming.
Navigation:
[Reply to this message]
|