SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Enthusiast
    Join Date
    Sep 2005
    0 Post(s)
    0 Thread(s)

    Learning OOP in PHP: will other resources help?

    Hi all ;-)

    after writing PHP for a while now but only using procedural methods, i have recently decided to pick up learning PHP 5's OOP capabilities, using the book 'Objects, Patterns, Practice' by Matt Zandstra (excellent book) , however i just wanted to know whether it would be worth also looking into another language very strong in OO ... i was thinking along the lines of maybe Java, C++, or even Ruby?

    do you think learning another OO language side-by-side to learning PHP OOP would help?
    of course, i would imagine that any extra language you learn is a good thing for personal development, but i wondered whether learning 2 languages together would help or hinder me to learn either.

    if so ... which language would you recommend i learn?

    thanks in advance,

    side note: i forgot to add initially, PHP is my first 'language' as such, as i started out in design (XHTML, CSS) then branched out to PHP .. so i am by no means that familiar with OOP besides what i have learnt so far from Matt's book.

  2. #2
    SitePoint Evangelist djdykes's Avatar
    Join Date
    Feb 2005
    Chester, Cheshire
    0 Post(s)
    0 Thread(s)
    No, i think you need to get to grips with the concepts of object orientation before you start looking at how other languages do it. the oo features in PHP 4 differ greatly to PHP 5 so i would start with OO in php 4 as it is pretty straight forward. But like i said understand the concept before looking at other languages, otherwise you'll just end up confused... (yes i'm speaking from experience)
    There are some tutorials on my site... and i don't use the car, dog animals examples have a read see if they help at all... i wrote them when i was fairly new to coding...


Posting Permissions

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