moon 111 Posted March 10, 2008 Share Posted March 10, 2008 I've been curious about the percentile for a while. I use OOP. Quote Link to comment https://forums.phpfreaks.com/topic/95449-do-you-use-object-oriented-php/ Share on other sites More sharing options...
Stooney Posted March 10, 2008 Share Posted March 10, 2008 hard to live without it Quote Link to comment https://forums.phpfreaks.com/topic/95449-do-you-use-object-oriented-php/#findComment-488734 Share on other sites More sharing options...
fert Posted March 10, 2008 Share Posted March 10, 2008 In general no. The only time i use OOP is to demonstrate that i know it. Quote Link to comment https://forums.phpfreaks.com/topic/95449-do-you-use-object-oriented-php/#findComment-488856 Share on other sites More sharing options...
Daniel0 Posted March 10, 2008 Share Posted March 10, 2008 I hardly ever use anything else other than for really small scripts or code examples. Quote Link to comment https://forums.phpfreaks.com/topic/95449-do-you-use-object-oriented-php/#findComment-488890 Share on other sites More sharing options...
unsider Posted March 11, 2008 Share Posted March 11, 2008 I hardly ever use anything else other than for really small scripts or code examples. Quote Link to comment https://forums.phpfreaks.com/topic/95449-do-you-use-object-oriented-php/#findComment-489239 Share on other sites More sharing options...
charliepage Posted March 13, 2008 Share Posted March 13, 2008 Nope, but I would like to. Quote Link to comment https://forums.phpfreaks.com/topic/95449-do-you-use-object-oriented-php/#findComment-491656 Share on other sites More sharing options...
zq29 Posted March 14, 2008 Share Posted March 14, 2008 I almost always write my code procedurally - I have a basic understanding of OOP, in the way that I can use and modify classes that others have written (PHPMailer, jpGraph, FCKEditor etc.) But as far as writing and utilising my own, I have never attempted it. I have a book on OOP but have only read the first chapter or so - I just can't think of a situation where it would benefit me. Though, maybe my opinion would change if I had a better understanding of the subject. Quote Link to comment https://forums.phpfreaks.com/topic/95449-do-you-use-object-oriented-php/#findComment-492067 Share on other sites More sharing options...
neylitalo Posted March 14, 2008 Share Posted March 14, 2008 When I write simple test scripts, it's really a waste of time, but with any respectable project, there's no other way to do it. SA: If you do it properly, it's very easy to implement a system that will save you a lot of time in development. Put the right directories in include_path, put the right code in the right directories, and fill in the __autoload function, and then all you have to do is make the new classname() call. __autoload takes care of the include or require call, and voila, you have your classes. Quote Link to comment https://forums.phpfreaks.com/topic/95449-do-you-use-object-oriented-php/#findComment-492093 Share on other sites More sharing options...
zq29 Posted March 14, 2008 Share Posted March 14, 2008 SA: If you do it properly, it's very easy to implement a system that will save you a lot of time in development. Put the right directories in include_path, put the right code in the right directories, and fill in the __autoload function, and then all you have to do is make the new classname() call. __autoload takes care of the include or require call, and voila, you have your classes. Hmmm, I have often wondered if OOP would speed up the development of my 'back-end' administration areas for projects, as they are almost always based on the same layout and similar functionality (create/modify/remove content fields) - I always start a new project by copying the contents of the previous project and modifying it to fit the requirements of the new one, improving things along the way if I can and writing new functionality if required. I have "PHP 5 Objects, Patterns, and Practice" (APress), I bought it after a recommendation by someone on here. Although what I have read makes sense, it just doesn't outline the clear benefits for going OOP. I'd like an article that shows the same practical functionality coded in both procedural and OOP methods where the gains are obvious. I've yet to find one, does anyone know of such an article (or book)? Quote Link to comment https://forums.phpfreaks.com/topic/95449-do-you-use-object-oriented-php/#findComment-492107 Share on other sites More sharing options...
sKunKbad Posted March 23, 2008 Share Posted March 23, 2008 Having an understanding of OOP, and php5's built in classes, is essential in my opinion. Also, there are so many free classes floating around out there, that not knowing how to use them is a real disadvantage to a beginner. Quote Link to comment https://forums.phpfreaks.com/topic/95449-do-you-use-object-oriented-php/#findComment-498636 Share on other sites More sharing options...
LemonInflux Posted March 23, 2008 Share Posted March 23, 2008 I generally tend to avoid it, usually because I can't see why using classes is any quicker than a function library. There probably is a reason, and I'd love to know it, but right now I don't see anything wrong with functions. Quote Link to comment https://forums.phpfreaks.com/topic/95449-do-you-use-object-oriented-php/#findComment-498725 Share on other sites More sharing options...
some1 Posted March 24, 2008 Share Posted March 24, 2008 I hate to edit other people classes.. Quote Link to comment https://forums.phpfreaks.com/topic/95449-do-you-use-object-oriented-php/#findComment-499239 Share on other sites More sharing options...
Daniel0 Posted March 24, 2008 Share Posted March 24, 2008 I generally tend to avoid it, usually because I can't see why using classes is any quicker than a function library. There probably is a reason, and I'd love to know it, but right now I don't see anything wrong with functions. There is much more to OOP than just using objects/classes. It's not comparable to using a function library. Quote Link to comment https://forums.phpfreaks.com/topic/95449-do-you-use-object-oriented-php/#findComment-499255 Share on other sites More sharing options...
shlumph Posted March 29, 2008 Share Posted March 29, 2008 I hate to edit other people classes.. I hate to edit other peoples procedural junk Quote Link to comment https://forums.phpfreaks.com/topic/95449-do-you-use-object-oriented-php/#findComment-503990 Share on other sites More sharing options...
Bladescope Posted March 31, 2008 Share Posted March 31, 2008 Ever since I found out about them, i've never been able to script without them. Quote Link to comment https://forums.phpfreaks.com/topic/95449-do-you-use-object-oriented-php/#findComment-505508 Share on other sites More sharing options...
mejpark Posted April 1, 2008 Share Posted April 1, 2008 I learned the theory behind object-oriented programming at uni (Java), and scored fairly well. But knowing is one thing - doing is another! I definately want to learn OO-PHP though, but not until I reasonable comfortable with procedural PHP programming. Quote Link to comment https://forums.phpfreaks.com/topic/95449-do-you-use-object-oriented-php/#findComment-506618 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.