Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

PHP

I cannot wrap my head around PHP OOP programming. Is there any other ways to better understand it?

I've been watching the videos a few times and I'm going to watch them a few more times but I just don't seem to fully get it.... Are there any good resources out there to read or watch that may break it down step by step? Also will there be more courses related to this topic?

James Tench
James Tench
43,891 Points

Andrew, OOP is in just about all of the languages. I think it just takes time and practice. I personally enjoyed the Java courses on treehouse. You might want to start with Java basics then do the Java OOP course. Yes I know you are learning PHP, but at the end of the day most programming languages are very similar. They usually just have small differences. Learning OOP from another perspective might help you connect the dots as well.

1 Answer

Matthew Smart
Matthew Smart
12,567 Points

Hi Andrew

I was exactly the same as you when I first started learning OOP. You are so used to procedural and feel comfortable with it. So when you move to OOP and you don't understand it, well it can make you feel like you may never understand it! ( it did for me any).

But it is just a case of time, you will understand it as long as you keep practising. And one day it will just click, and you with think "why the hell didn't I get that before".

Treehouse is a very useful tool, however in terms of OOP for PHP it hasn't got the widest range of tutorials. Maybe check out this: http://code.tutsplus.com/tutorials/object-oriented-php-for-beginners--net-12762

Or sign up the lynda.com which does have a wide range of tutorials for OOP.

Good luck, and keep on it. You will learn it and move on to cool MVC frameworks like laravel.