devWhiz Posted January 24, 2012 Share Posted January 24, 2012 Where would you guys recommend I go to learn and become familiar with writing Object Oriented PHP code? Also what are the advantages of writing object oriented code? Is it better than the 'traditional' coding style? I mean without using Objects, Classes, Methods, etc.. Is one way more efficient than the other? I've been seeing a lot of object oriented php code lately, and I'm just curious and want to learn the concept of OOP, any help is appreciated. Thanks! -CLUEL3SS Quote Link to comment https://forums.phpfreaks.com/topic/255686-where-can-i-get-familiar-with-and-learn-php-object-oriented-coding/ Share on other sites More sharing options...
Drongo_III Posted January 24, 2012 Share Posted January 24, 2012 OOP just keeps everything clean and tidy when you're working on bigger things. It also helps you write reusable code and keeps it all separate. For the basic of OOP i found this guy's tutorials on youtube really handy - I'm not saying that's the absolute pinnacle of learning but if you want a fast overview of the concepts behind OOP its fab! Where would you guys recommend I go to learn and become familiar with writing Object Oriented PHP code? Also what are the advantages of writing object oriented code? Is it better than the 'traditional' coding style? I mean without using Objects, Classes, Methods, etc.. Is one way more efficient than the other? I've been seeing a lot of object oriented php code lately, and I'm just curious and want to learn the concept of OOP, any help is appreciated. Thanks! -CLUEL3SS Quote Link to comment https://forums.phpfreaks.com/topic/255686-where-can-i-get-familiar-with-and-learn-php-object-oriented-coding/#findComment-1310702 Share on other sites More sharing options...
dzelenika Posted January 24, 2012 Share Posted January 24, 2012 Object oriented code is harder (and slower) to write and sometimes is slower executed, but is easier to maintain, reuse and debug. It is also less error prone and easier to extend and scale ... If you don't see reason to write OO code it's better to write good procedural style instead of bad OO. Quote Link to comment https://forums.phpfreaks.com/topic/255686-where-can-i-get-familiar-with-and-learn-php-object-oriented-coding/#findComment-1310704 Share on other sites More sharing options...
premiso Posted January 24, 2012 Share Posted January 24, 2012 http://www.phpfreaks.com/forums/index.php?topic=294324.0 Already a topic on the matter. Quote Link to comment https://forums.phpfreaks.com/topic/255686-where-can-i-get-familiar-with-and-learn-php-object-oriented-coding/#findComment-1310707 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.