OOP vs. Procedural?

TheGodfather

Member
Jul 29, 2014
40
7
Hey DB, I assume this is the correct section.
Anyways, I'm getting ready to begin development on a project of mine and I'm just curious which of the two you guys prefer and why.
I'm experienced with both, but as this project will be open-source I'd like some kind of user input to make it as appealing to you as possible, it's not being developed for people with minimum, or no knowledge of PHP at all, so yeah.
Thanks.
 

N8boy

Member
May 31, 2014
31
9
Well it depends on what you want to create. If it's just a small script which has not many "commands" and is more for displaying static content you can do it how ever you like. If you want to create a bigger project which calls one different places the same same "commands" than you should use oop. You have to create only the function one time and so you can save work.

And specially for open-source project I recommand you to create functions and classes (with clear names).
 

Users who are viewing this thread

Top