www.webdeveloper.com
Results 1 to 10 of 10

Thread: Can someone break down the simple meaning of object oriented programming???

  1. #1
    Join Date
    Feb 2012
    Location
    Sacramento, CA
    Posts
    64

    Can someone break down the simple meaning of object oriented programming???

    I was asked to define this in an interview, I told the interviewer, "Oh, it's so you can easily update the functions"..


    What are you definitions?

  2. #2
    Join Date
    Aug 2004
    Location
    Ankh-Morpork
    Posts
    19,384
    PHP 5 Objects, Patterns, and Practice. When you get to the point where the majority of this book makes sense to you, not only will you be able to understand "why" it's useful, but you'll also want to use classes/objects.
    "Please give us a simple answer, so that we don't have to think, because if we think, we might find answers that don't fit the way we want the world to be."
    ~ Terry Pratchett in Nation

    eBookworm.us

  3. #3
    Join Date
    Feb 2012
    Location
    Sacramento, CA
    Posts
    64
    That book costs money, don't you think I should just buy a subscription to Lynda.com which comes with all the tutorials?

  4. #4
    Join Date
    Aug 2004
    Location
    Ankh-Morpork
    Posts
    19,384
    Quote Originally Posted by johnny916 View Post
    That book costs money, don't you think I should just buy a subscription to Lynda.com which comes with all the tutorials?
    Everyone learns differently. I know nothing about lynda.com, but I do know that that book helped me a lot. In general, I find web tutorials may help you learn syntax (and may not), but seldom really teach you the underlying theory. Maybe lynda.com is different, maybe they're the best thing since sliced bread for learning PHP, but I have no way to say yes or no about them.

    If you just want the basics, the author has a couple online articles:
    http://www.ibm.com/developerworks/op...ary/os-phpobj/
    http://www.ibm.com/developerworks/op.../os-advphpobj/
    "Please give us a simple answer, so that we don't have to think, because if we think, we might find answers that don't fit the way we want the world to be."
    ~ Terry Pratchett in Nation

    eBookworm.us

  5. #5
    Join Date
    May 2003
    Posts
    599
    I like Lynda.com. I started learning PHP from there...good tuts.

    Breaking down OOP into a simple meaning is tough, but try this:

    Every program has tasks (for example get user credentials)
    Within the task of getting user credentials, there are steps (authenticate to the database, retreive the record, and return the user info)
    Therefore that one task knows the predefined steps to get the result.

    An easy explanation might be: to logically group tasks with relevant methods and variables to get a result from minimal input...a side effect might be easily updating functions (called 'methods' within the class)
    We do precision guesswork

  6. #6
    Join Date
    Feb 2013
    Posts
    94
    I'll add my .02 cents.

    Over the last couple of months, I been teaching myself PHP and it's within the last couple of months that OOP is sinking into my brain. I still have a little more ways to go, but I'm getting there. What I am finding out is that you can even add an extra level of security using OOP, because you can protect certain code with protected or private functions or at the very least write code that makes sense (Once the Light Bulb turns on). The code isn't thrown in a hap hazard way like procedural programming can be. Though procedural programming has it's place like for smaller projects or for a quick fix.

    Once last thing, I am finally getting almost done with a blogging site that I started doing and I started doing it the procedural way then switched over to OOP. While I was programming it the procedural way I used the dreaded goto statement to get a certain section of code working properly. I have been programming in other languages over the years and never had to use the goto statement. I was sure depressed that night, but I think it is what got me motivated to learn Object-Oriented Programming. It might be a hassle starting out, but once that light bulb kicks in it will be like discovering a new flavor of ice cream.

  7. #7
    Join Date
    Aug 2004
    Location
    Ankh-Morpork
    Posts
    19,384
    Quote Originally Posted by Strider64 View Post
    ... It might be a hassle starting out, but once that light bulb kicks in it will be like discovering a new flavor of ice cream.
    Almost everyone I know who started out learning to program procedurally but who then learned OOP had the same sort of revelation if they kept at it: the proverbial light bulb went off, and there was no going back to procedural coding except for simple, one-off tasks (and sometimes even then when they realized they weren't quite so simple after all).
    "Please give us a simple answer, so that we don't have to think, because if we think, we might find answers that don't fit the way we want the world to be."
    ~ Terry Pratchett in Nation

    eBookworm.us

  8. #8
    Join Date
    Feb 2012
    Location
    youTUBE
    Posts
    234

    The object oriented environment.

    Object oriented programming gives the ability to manipulate the regular features of any system that can be described in computable terms. Computable systems can be general in nature or specific in their interaction with the world. OOP provides ways to descibe the general case and also allows the programmer to narrow that general case down into several types of specific uses, using a minimalist approach.

    There is a specific syntax used to describe systems in the OO environment, which includes, the properties of the system, methods that outline how those properties interact with each other, and with its environment, along with a number of pedagogical syntatical features, like classes, constructor, destructor, abstract classes, new, extends, overrides, private, public and a whole lot more to be discovered when learning the OO environment.
    Knowledge is that which can be shown to be the case, and Intelligence is the method one uses to deploy the demonstration of what is the case, everything else is Information.

    For a stronger Text reading try:
    http://www.wyc3.com/diction.php

  9. #9
    Join Date
    Mar 2013
    Posts
    10
    That book costs money, don't you think I should just buy a subscription to Lynda.com which comes with all the tutorials?
    I checked out Lynda.com which look intriguing, but it is expensive at between $25 and $37.50 / month. You can buy a lot of books for that kind of money.

  10. #10
    Join Date
    Feb 2012
    Location
    Sacramento, CA
    Posts
    64
    Want to go half on it? PM me.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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



Recent Articles