Where is best place to learn OOP?

12 replies
I am using PHP as the language to learn OOP, I understood it well enough to work with various frameworks for years but apparently not enough to actually do anything in my own sites outside of the frameworks.

I understand objects, creating them and so on and so forth. Creating Classes, and sub classes and methods.. public, private, locked to specific context and all that stuff I am lost.

I need basic beginner edumacation all the way to advanced, lost I am , lost...

Help?

Thanks,

- T
#learn #oop #place
  • Profile picture of the author RichBeck
    Terry,

    I would recommend Head First Object-Oriented Analysis and DesignHead First Object-Oriented Analysis and Design

    God Bless,

    Rich Beck
    {{ DiscussionBoard.errors[6495310].message }}
  • Profile picture of the author dowho
    Since you already know the basics, I would refer to php.net. I don't recommend it to beginners because it is pretty technical, but if you can read a chapter of it without feeling overwhelmed, everything you need is right there.

    Also, create yourself some test projects that challenge your skills. If you get stuck, WebDeveloper.com has an awesome group of people. I'm there myself helping people almost daily.

    I'm not trying to say anything negative about WF, but most people here know next to nothing about code. WD forums have a way larger number of coders, you'll probably get your questions answered quicker.
    {{ DiscussionBoard.errors[6495473].message }}
  • Profile picture of the author James Andy
    Check this link Learn object oriented programming, at OopSchool.com hopefully it may solve your problem.
    {{ DiscussionBoard.errors[6497581].message }}
    • Profile picture of the author Terry Crim
      Originally Posted by James Andy View Post

      Check this link Learn object oriented programming, at OopSchool.com hopefully it may solve your problem.

      Is that your site? I find it really hard to navigate and find anything there. Found a tech paper written in 1991 about OOP linked from that site.
      {{ DiscussionBoard.errors[6513536].message }}
  • Profile picture of the author madelinekim
    Originally Posted by Terry Crim View Post

    I am using PHP as the language to learn OOP, I understood it well enough to work with various frameworks for years but apparently not enough to actually do anything in my own sites outside of the frameworks.

    I understand objects, creating them and so on and so forth. Creating Classes, and sub classes and methods.. public, private, locked to specific context and all that stuff I am lost.

    I need basic beginner edumacation all the way to advanced, lost I am , lost...

    Help?

    Thanks,

    - T
    Well, The best way to learn oops is to learn from basics. Basics will consists polymorphism, classes, inheritance and objects. And then to descend directly into creating a program in a OOP language, ensure to use these concepts to structure your code.
    {{ DiscussionBoard.errors[6497950].message }}
    • Profile picture of the author Terry Crim
      Originally Posted by madelinekim View Post

      Well, The best way to learn oops is to learn from basics. Basics will consists polymorphism, classes, inheritance and objects. And then to descend directly into creating a program in a OOP language, ensure to use these concepts to structure your code.
      Yes I agree 100%, do you have any resource examples that go more indepth into these? I am looking for more advanced information written by current day professionals that put these principles together in real world examples one would come across today and not from the 1980's or 90's.

      Thanks.
      {{ DiscussionBoard.errors[6513563].message }}
  • Profile picture of the author iuditg
    Lynda.com has a whole dedicated series for OOP, maybe you should subscribe it for a month.
    {{ DiscussionBoard.errors[6497993].message }}
  • Profile picture of the author JohnnyDeez
    I am also just now getting into OOP with php. One thing I like to do is to go back and re-write code I've already created for other projects using Classes and Objects. That way, I'm not adding to many 'variables' (bad word choice) into the mix.

    If I already understand the code and what it has to do, I can focus on learning a new technique for implementing it. Just a tip.

    I've found that videos aren't all that helpful. Building things always seems to work better for me. Good luck!
    Signature

    Software Development Tips for Internet Entrepreneurs: What The Dev

    {{ DiscussionBoard.errors[6503358].message }}
  • Profile picture of the author FredBliss
    Hi guys, I've been developing MVC-style OOP PHP for 5 years. I self-taught with a previously rudimentary knowledge of procedural-style PHP that we are all very familiar with. The way I learned was to get into one of the MVC PHP frameworks out there, (I won't name mine unless asked since I don't want to hijack this thread and turn it into a debate about the best framework)

    As I was saying. I learned by a) figuring out what I needed to do b) locating an existing example of what I needed and c) adapting it to my needs. This forced me to be able to understand what was going on in the code and then take that and apply it to my situation.

    Be aware that there are some major differences between PHP 4,5, and most recently 5.3 which has the most drastic changes in coding conventions since PHP 4 went to 5. I'm moving to 5.3 currently but most of my work is still done on 5.2.x. and will be over the next year.

    One very large note of caution: Nothing will burn you out faster than trying to conceive of and/or do too much at once. Break your tasks down into the most basic possible unit of work that you can, so you don't overwhelm yourself trying to learn/do too much at once. Simple, small steps.
    {{ DiscussionBoard.errors[6506673].message }}
  • Profile picture of the author BlueXephos
    Banned
    In my opinion the best Object Oriented Programming language to learn is JavaScript because it has a complex structure and is easy to learn and you will need only a browser and some tutorials.
    {{ DiscussionBoard.errors[6512886].message }}
  • Profile picture of the author antac
    Banned
    Did you try searching Amazon for "object oriented programming"? There seem to be several books that are about OOP before being about any particular programming language.
    That's what I gather from your question you're trying to learn right? OOP principles without the implementation specifics in any particular language?
    {{ DiscussionBoard.errors[6523290].message }}
  • Profile picture of the author HEDEON
    Order this from your local library to check it out, and if you like it buy yourself a copy.

    Amazon.com: OOP Demystified (0783254043459):...Amazon.com: OOP Demystified (0783254043459):...
    I found it really helped me get a handle on OOP principles. The examples are in C# and Java, but they are simple and easy to convert to PHP. If you really want to learn OOP then Design Patterns is the way to go - Google for 'design patterns'

    Programming in OOP is like creating pieces of a jigsaw puzzle. Where the pieces connect are the equivalent of the interfaces for the program objects.

    OOP is a really neat way to program, as it gives more flexibility than can gained by just using procedural type programming.

    Some elegant things in OOP are not possible to do easily (if at all) in procedural type programming.
    {{ DiscussionBoard.errors[6530916].message }}

Trending Topics