Hall of Famer Posted May 16, 2012 Share Posted May 16, 2012 In a perfect program/script, everything is an object. Quote Link to comment https://forums.phpfreaks.com/topic/262645-do-you-agree-with-this-statement-or-not/ Share on other sites More sharing options...
Jessica Posted May 17, 2012 Share Posted May 17, 2012 No. Quote Link to comment https://forums.phpfreaks.com/topic/262645-do-you-agree-with-this-statement-or-not/#findComment-1346163 Share on other sites More sharing options...
scootstah Posted May 17, 2012 Share Posted May 17, 2012 That statement cannot be true because not everything in PHP is an object. Quote Link to comment https://forums.phpfreaks.com/topic/262645-do-you-agree-with-this-statement-or-not/#findComment-1346165 Share on other sites More sharing options...
KevinM1 Posted May 17, 2012 Share Posted May 17, 2012 There's also no such thing as a 'perfect' script/program. And, invariably, at some point, it all gets converted into machine readable instructions. EDIT: OOP is a design paradigm largely aimed at making things easier for people. Consider that while thinking about perfection. Quote Link to comment https://forums.phpfreaks.com/topic/262645-do-you-agree-with-this-statement-or-not/#findComment-1346172 Share on other sites More sharing options...
Hall of Famer Posted May 17, 2012 Author Share Posted May 17, 2012 That statement cannot be true because not everything in PHP is an object. Well thats because PHP is not perfect yet? By the time everything in PHP becomes an object can we call it a fully developed language. Quote Link to comment https://forums.phpfreaks.com/topic/262645-do-you-agree-with-this-statement-or-not/#findComment-1346178 Share on other sites More sharing options...
Philip Posted May 17, 2012 Share Posted May 17, 2012 A bit can be an object? Quote Link to comment https://forums.phpfreaks.com/topic/262645-do-you-agree-with-this-statement-or-not/#findComment-1346179 Share on other sites More sharing options...
Hall of Famer Posted May 17, 2012 Author Share Posted May 17, 2012 There's also no such thing as a 'perfect' script/program. And, invariably, at some point, it all gets converted into machine readable instructions. EDIT: OOP is a design paradigm largely aimed at making things easier for people. Consider that while thinking about perfection. Id say this is a quite interesting point of view. Yeah a perfect script/program is most likely unattainable, we can make it as close to perfection as possible though. Quote Link to comment https://forums.phpfreaks.com/topic/262645-do-you-agree-with-this-statement-or-not/#findComment-1346181 Share on other sites More sharing options...
KevinM1 Posted May 17, 2012 Share Posted May 17, 2012 What do you mean by perfection? Programming is a balancing act between such things as in-process efficiency, readability, maintainability, scalability, etc. The best programs do a lot of those things well, but never excel at everything. There's always a tradeoff. Quote Link to comment https://forums.phpfreaks.com/topic/262645-do-you-agree-with-this-statement-or-not/#findComment-1346187 Share on other sites More sharing options...
xylex Posted May 17, 2012 Share Posted May 17, 2012 I'm pretty sure a perfect script is a turnkey one that generates millions of dollars a day for me with no maintenance. Not sure where objects fit in...... Quote Link to comment https://forums.phpfreaks.com/topic/262645-do-you-agree-with-this-statement-or-not/#findComment-1346238 Share on other sites More sharing options...
spiderwell Posted May 29, 2012 Share Posted May 29, 2012 totally disagree with this (the OP statement) Quote Link to comment https://forums.phpfreaks.com/topic/262645-do-you-agree-with-this-statement-or-not/#findComment-1349496 Share on other sites More sharing options...
Jessica Posted May 29, 2012 Share Posted May 29, 2012 OP: Can you show us your perfect "Hello World" script that is entirely OOP? Quote Link to comment https://forums.phpfreaks.com/topic/262645-do-you-agree-with-this-statement-or-not/#findComment-1349498 Share on other sites More sharing options...
trq Posted May 29, 2012 Share Posted May 29, 2012 The statement is completely ridiculous, for numerous obvious reasons. Quote Link to comment https://forums.phpfreaks.com/topic/262645-do-you-agree-with-this-statement-or-not/#findComment-1349500 Share on other sites More sharing options...
.josh Posted May 29, 2012 Share Posted May 29, 2012 In a perfect program/script, everything is an object. Wow man...you started a whole new thread to be told the exact same thing you were told from your other thread. What part of "no" don't you understand? You're just an OOP fanboy and that's fine, but not at the expense of calling all else amateur, noob, etc.. because then you just come off as a pretentious douchebag. Also, it shows your noobness. I sorta feel sorry for you.. I bet when the next big paradigm comes along, either your heart is going to break, or you'll jump on that bandwagon and try to say the same things about OOP as you are saying about Procedural, not having learned a damn thing. edit: there I even added a poll, maybe that will help you, since it's more visual. Quote Link to comment https://forums.phpfreaks.com/topic/262645-do-you-agree-with-this-statement-or-not/#findComment-1349512 Share on other sites More sharing options...
The Little Guy Posted May 29, 2012 Share Posted May 29, 2012 Objects have procedural code within them. In the end, object are non-existent. Quote Link to comment https://forums.phpfreaks.com/topic/262645-do-you-agree-with-this-statement-or-not/#findComment-1349514 Share on other sites More sharing options...
KevinM1 Posted May 29, 2012 Share Posted May 29, 2012 To be fair, this is actually HoF's first thread on "OOP = awesome." The PHP 5.5/6.0 thread came later. But, yeah, any way you slice it, it's ridiculous. I mean, that Linus Torvalds (principle creator of linux and creator of Git, and somewhat notorious for not liking C++ or OOP) is such an amateur. Quote Link to comment https://forums.phpfreaks.com/topic/262645-do-you-agree-with-this-statement-or-not/#findComment-1349515 Share on other sites More sharing options...
.josh Posted May 29, 2012 Share Posted May 29, 2012 To be fair, this is actually HoF's first thread on "OOP = awesome." The PHP 5.5/6.0 thread came later. But, yeah, any way you slice it, it's ridiculous. LoL yeah Phil pointed that out to me, so I'll give him that. But yeah regardless, unhealthy obsession w/ OOP for sure... I mean I like seeing when someone first discovers something and it first clicks with them. The excitement and joy and all that jazz is kind of cute, but when it starts turning into "..and all else is shit" ... yeah, calm down sparky... Quote Link to comment https://forums.phpfreaks.com/topic/262645-do-you-agree-with-this-statement-or-not/#findComment-1349518 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.