0

Hello,

I wonder when do I have to use OOP (Object Oriented Programming) ?

I know a little bit about it, but do not know when to use it. I basically in the middle of developing a website backend. Suggestion and advise appreciated.

5
Contributors
6
Replies
39
Views
4 Years
Discussion Span
Last Post by pritaeas
0

It's a choice. It will make it easier to create reusable blocks of code. Another advantage is that, when used properly, it will be easier to read and manage your code.

0

My opinion: if you develop a complex site start using it soon since it will help you keep your code organized and under control. But it might take some time to learn it and it is probably not a good idea to learn on a real project. Well, I am not sure if I was helpful at all with this answer.

0

PHP is heading the OOP direction more and more with every version. Getting familiar with OOP in PHP as soon as possible is probably a very good idea.

0

ok thanks guys. Another question: when we are programming using OOP, do we have to implement MVC (Model View Controller) concept ?

Edited by davy_yg

1

MVC is just one way of doing things. Learning it will help you understand most frameworks though, it's very common.

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.