Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Do you need a good background in OOP before moving to frameworks?

Frameworks being all OOP, would it not be wise to go into frameworks without having a solid background in OOP? I can write basic classes but nothing too fancy or abstract.

How much should I know of OOP before moving to frameworks?

Right now I am PHP Object-Oriented Programming to learn OOP.

EDIT: Once you start programming in OOP, is there a need to move back to procedural? Or is OOP the way to go because it's more organized and more reusable. (obviously if the site is very small, procedural would be fine)

like image 298
ggfan Avatar asked May 31 '10 15:05

ggfan


1 Answers

Its always good to have a strong understanding of what you are working on. so yes I think to be a good programmer you should learn at a high level how OOP works so you understand how classes can be extended etc.

At some point though you will know enough to get started with your framework. So once you are a few chapters in, start using the framework of choice and any time you see something you don't understand research it and repeat.

EDIT: to answer you updated question about procedural.

You should understand PHP first and foremost, OO is very useful but don't blindly create OO code. Understand why you are doing it and know when you don't need to use it. For example (most programers don't really run into this problem) when you hit large scale you may need to push back on some of your OO code to make it run faster. OO is an overhead but its a very useful overhead.

like image 153
Derek Organ Avatar answered Oct 04 '22 03:10

Derek Organ