PHP & Object Oriented Programming

Status
Not open for further replies.

MisterX

New member
Jun 25, 2006
1,555
22
0
How much easier is it to program using Object Oriented methods ?! I've done everything I planned to do with PHP without knowing OO, but am uncertain about whether I should change my ways before starting work on bigger projects (small-mid size dating site, for example).

What do you think ?!
 


I used to program in C++ which was all OO, but I get on fine in PHP without worrying too much.

If you can write code that is reuseable, that obviously speeds things up and can save you lots of time.
 
i find it way easier myself. the reason being that i only have to update in one place rather then several. i can set the default results per page in my Paging class rather then going thru each page that has this to set it.
 
Object oriented will speed up your coding dramatically. Reason being if you do it right, code is very rarely repeated. So if you require a change, its only in one file as opposed to many.
 
i've heard some argue that going to OOP can and is overkill.

i dont know that i agree with that though. i'd be interested in a discussion on the why and when it would be overkill vs not having used OOP.
 
Object oriented code helps you reuse existing code. If your sites are more or less similar in their functionality, then it's probably a good idea to get acquainted with it.

I used OOP in C++, but I've yet to use it in PHP.
 
Status
Not open for further replies.