I have always been "scared" of OOP, i understand the classes, functions and constructors as I use classes in a java based language called Processing at University.
However, I am unsure how to go about adopting OOP into the code I use, could someone please direct me to a good some good tutorials where I can learn about it. I'm really interested in web technologies and always use PHP for backend processing but I would like to also improve my knowledge of it as I belive I am at the stage where I can progress to more advanced things... such as OOP.
Thanks
I would start with reviewing the PHP manuals pages on OOP. Then maybe consider investigating design patterns.
I could recommend this books:
PHP Objects and Patterns
PHP Object-Oriented Solutions
also you can invest in some good video tutorials like lynda.com's PHP Beyond Basics:
PHP Beyond Basics
If you understand the basics of OOP, you are at the point to start learning about design patterns. A book like "Head First Design Patterns" from O'Reilly, will get you started.
As in any language it's important to get familiar with design patterns. Some are very practical and are used constantly to tackle and approach typical problems.
Although you could do an easy search on "php design patterns", this one coverts some basic patterns which are used often.
Besides the above, I'd just like to say that you have to start using OOP! I believe that experience is a very, very important aspect of learning OOP, and to use it correctly in every situation.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With