SitePoint Sponsor

User Tag List

Results 1 to 15 of 15

Thread: PHP and OOP

  1. #1
    SitePoint Enthusiast
    Join Date
    Nov 2007
    Location
    Belgium
    Posts
    60
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    PHP and OOP

    Hello, I know my way around in php but never really tried OOP because I didn't really saw what was good about it but now I really want to learn it because a friend of mine says it's much cleaner and easyer to edit but I kinda need some good tutorials or maybe a book(name of a book) where I can learn from it, something where I will learn the whole oop thing.

  2. #2
    SitePoint Enthusiast sarahG's Avatar
    Join Date
    Apr 2006
    Location
    Wirral, UK
    Posts
    52
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    SitePoint's own PHP Anthology is probably one of the best books to look at for OOP learning.

  3. #3
    SitePoint Enthusiast
    Join Date
    Nov 2007
    Location
    Belgium
    Posts
    60
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Thumbs down

    A non sitepoint book perhaps because I can't buy over the internet and I have a store in the neighbourhood that sells computer books so that's why I'm asking

  4. #4
    SitePoint Enthusiast benno23's Avatar
    Join Date
    May 2008
    Posts
    95
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

  5. #5
    Theoretical Physics Student bronze trophy Jake Arkinstall's Avatar
    Join Date
    May 2006
    Location
    Lancaster University, UK
    Posts
    7,062
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    I disagree. That teaches people how to use OOP, but not really what it is.

    I think your best start is: http://sepwww.stanford.edu/sep/josman/oop/oop1.htm

    This tutorial is based around Java, but it teaches the CONCEPT of OOP. OOP is the same concept in all programming languages, and this tutorial is a fantastic way to hammer what OOP really is into your mind.
    Jake Arkinstall
    "Sometimes you don't need to reinvent the wheel;
    Sometimes its enough to make that wheel more rounded"-Molona

  6. #6
    SitePoint Enthusiast
    Join Date
    Nov 2007
    Location
    Belgium
    Posts
    60
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    thanks, I'll read both

  7. #7
    SitePoint Enthusiast
    Join Date
    Nov 2007
    Location
    Belgium
    Posts
    60
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Does anyone has some useful beginning codes? I can look into, with useful I mean that you use on a website more then once

  8. #8
    play of mind Ernie1's Avatar
    Join Date
    Sep 2005
    Posts
    1,252
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    You can start reading:
    Object-Oriented Programming Concepts
    my mobile portal
    ghiris.ro

  9. #9
    SitePoint Enthusiast
    Join Date
    Nov 2007
    Location
    Belgium
    Posts
    60
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    but that's all java, aren't there any php tutorials or something... Not like it doesn't like like each other but still I prefer php.

    But thanks, I'm still going to read it

  10. #10
    SitePoint Zealot
    Join Date
    Jul 2008
    Posts
    140
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I used to have a good PHP OOP tutorial bookmarked, but it got lost when I upgraded to FF3.

    Here's a C# one I liked, LOL. http://www.developerfusion.co.uk/show/4341/1/

    Here's a PHP OOP tutorial from a quick Google search: http://www.codewalkers.com/c/a/Progr...amming-in-PHP/

  11. #11
    Theoretical Physics Student bronze trophy Jake Arkinstall's Avatar
    Join Date
    May 2006
    Location
    Lancaster University, UK
    Posts
    7,062
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by slisebry View Post
    but that's all java, aren't there any php tutorials or something... Not like it doesn't like like each other but still I prefer php.

    But thanks, I'm still going to read it
    PHP's OOP, Java's OOP, C#'s OOP, C++'s OOP, all OOP is the same. You really need to know the CONCEPT before you start the programming.
    Jake Arkinstall
    "Sometimes you don't need to reinvent the wheel;
    Sometimes its enough to make that wheel more rounded"-Molona

  12. #12
    SitePoint Zealot
    Join Date
    Feb 2006
    Posts
    168
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I agree with everyone else.

    There really isn't going to be such a thing as "useful beginning codes" for you. OOP is all about grasping the concept of seeing programming in an object oriented sense instead of the procedural sense that you currently know it.

  13. #13
    SitePoint Wizard bronze trophy
    Join Date
    Jul 2006
    Location
    Augusta, Georgia, United States
    Posts
    4,187
    Mentioned
    17 Post(s)
    Tagged
    4 Thread(s)
    OOP is a methodology. Learn the methodology learn OOP. Its that simple. The best place to start is probably a java book. This way you are forced to think in terms of objects. Php is forgiving java is not.

    http://math.hws.edu/javanotes/index.html

  14. #14
    hi galen's Avatar
    Join Date
    Jan 2006
    Location
    New Haven, CT
    Posts
    1,228
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

  15. #15
    SitePoint Wizard silver trophybronze trophy Cups's Avatar
    Join Date
    Oct 2006
    Location
    France, deep rural.
    Posts
    6,869
    Mentioned
    17 Post(s)
    Tagged
    1 Thread(s)
    Quote Originally Posted by galen View Post
    tehe. That's what was posted in reply #4

    I agree with the replies, especially:
    Quote Originally Posted by arkinstall
    You really need to know the CONCEPT before you start the programming.
    The thing is, its so hard to grasp why you should learn a new concept.

    What bothers me about the OPs question is that s/he cannot grasp actually why s/he should learn.

    Search only this PHP forum for the words "why learn oop" and there are hundreds of threads. Find some of the longer ones and spend a few hours reading till you find someone who gives you an example that makes a light bulb go off in your head, or something that reminds you of recurring problems you encounter.

    Some of the best ones go back to 2001, 2002 like the classic What's so good about OOP?


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •