This is a discussion on "Whats OOP?" within the PHP Forum section. This forum, and the thread "Whats OOP? are both part of the Program Your Website category.
|
|
|
|
|
![]() |
||
Whats OOP?
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
||||
|
Whats OOP?
Object Orientated Programming? What exactly is it, why is it better/worse than normal PHP, is it worth learning, where do I learn it?
A few questions for you guys Jack
__________________
Resources Administrator
Grilling Gurus - Interviews with the Best Web Designers and Developers in the Industry Got a Question for Ryan Carson and his Web Design/Development team Carsonified? Jack Franklin - My Blog (It's a Pen in My Mouth BTW)
Last Blog Entry: My Latest Project - Grilling Gurus... (Jun 11th, 2008)
|
|
|
|
||||
|
Re: Whats OOP?
OOP is just a way to organise your prgramming so that it's better
a general example. you have many objects:
does that make sense? can you now see the benefits of this?
__________________
WelshStew Lead Administrator tierney rides tboard - uk site | xtreme wales - extreme clothing If you think I've helped, click the "Thanks" webforumz - facebook | LinkedIn
Last Blog Entry: Opera 9.5 Released ! (Jun 12th, 2008)
|
|
||||
|
Re: Whats OOP?
Sort of yes. But I see no benefits?
__________________
Resources Administrator
Grilling Gurus - Interviews with the Best Web Designers and Developers in the Industry Got a Question for Ryan Carson and his Web Design/Development team Carsonified? Jack Franklin - My Blog (It's a Pen in My Mouth BTW)
Last Blog Entry: My Latest Project - Grilling Gurus... (Jun 11th, 2008)
|
|
||||
|
Re: Whats OOP?
because the objects you define are generic, you can reuse them over and over again in different areas.
you don't have to write specific custom code for a function everytime, you just build it up. like lego
__________________
WelshStew Lead Administrator tierney rides tboard - uk site | xtreme wales - extreme clothing If you think I've helped, click the "Thanks" webforumz - facebook | LinkedIn
Last Blog Entry: Opera 9.5 Released ! (Jun 12th, 2008)
|
|
||||
|
Re: Whats OOP?
Ahh I see. Thanks Stew.
__________________
Resources Administrator
Grilling Gurus - Interviews with the Best Web Designers and Developers in the Industry Got a Question for Ryan Carson and his Web Design/Development team Carsonified? Jack Franklin - My Blog (It's a Pen in My Mouth BTW)
Last Blog Entry: My Latest Project - Grilling Gurus... (Jun 11th, 2008)
|
|
||||
|
Re: Whats OOP?
Encapsulation, Polymorphism, reuse and inheritance are the main aspects of OO.
People usually use object orientated code when working with other developers as it's neater to code in.
Last Blog Entry: 3D Chess in your browser! (Mar 14th, 2008)
|
|
|||
|
Re: Whats OOP?
|
|
|||
|
Re: Whats OOP?
I think the main reason to learn OO PHP is the number of frameworks being released which nearly all are OO based. They can drastically reduce the time taken on projects.
|
|
||||
|
Re: Whats OOP?
Thanks guys. Anyone know where the best place is to start? Or a book, I'm happy to buy a book?
__________________
Resources Administrator
Grilling Gurus - Interviews with the Best Web Designers and Developers in the Industry Got a Question for Ryan Carson and his Web Design/Development team Carsonified? Jack Franklin - My Blog (It's a Pen in My Mouth BTW)
Last Blog Entry: My Latest Project - Grilling Gurus... (Jun 11th, 2008)
|
|
||||
|
Re: Whats OOP?
Hi Jack,
I think it's a bit hard to realise the full potential of OOP until you start using it. I was the same when I first heard of it, wondering what all the fuss was about. I wrote an article for CC in October http://creativecoding.webforumz.com/...rest-of-us.php which is a nice introductory look at OOP in PHP. There are also many beginner-intermediate tutorials online. A search for OOP in PHP will yield many results in google.
Last Blog Entry: The wannabe juggler's quest (Oct 27th, 2007)
|
|
|||
|
Re: Whats OOP?
The single best introductory explanation of oo I ever read was by bruce eckle in 'Thinking in Java' - don't let the java bit put you off, the intro to the book just talks about oo rather than java and it's available free online.
|
![]() |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Whats in a name? | jhappeal | Webforumz Cafe | 15 | Nov 6th, 2007 19:56 |
| Hi All Whats Up | DarkwizarD | Introduce Yourself | 6 | Jun 27th, 2007 07:15 |
| Whats the best way to do this? | GCpd | Website Planning | 4 | Jun 17th, 2007 09:53 |
| Whats up | jjgamepro17 | Introduce Yourself | 6 | Nov 8th, 2006 14:48 |
| Whats a CGI-Bin? | NewDesigner | Web Page Design | 6 | Sep 3rd, 2006 03:33 |