Procedural or OOP, which one do you prefer

Discussion in 'PHP' started by ct2k7, Aug 17, 2009.

?

Do you prefer OOP or Procedural?

  1. OOP

    5 vote(s)
    83.3%
  2. Procedrual

    1 vote(s)
    16.7%
  1. #1
    Hi,

    which type of programming to do prefer, procedural or OOP (Object-orientated programming)?

    I just can't get to grips with OOP, and always use procedural where possible.
     
    ct2k7, Aug 17, 2009 IP
  2. kblessinggr

    kblessinggr Peon

    Messages:
    539
    Likes Received:
    13
    Best Answers:
    0
    Trophy Points:
    0
    #2
    No option for both in the poll? Cuz sometimes I feel like its absurb to have to go one way or another, every project is different and while some may benefit from OOP concepts, others may be hindered by it.
     
    kblessinggr, Aug 17, 2009 IP
  3. ct2k7

    ct2k7 Peon

    Messages:
    457
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #3
    I was expecting people to prefer one or the other, not both, but your view is intriuging :D
     
    ct2k7, Aug 17, 2009 IP
  4. kblessinggr

    kblessinggr Peon

    Messages:
    539
    Likes Received:
    13
    Best Answers:
    0
    Trophy Points:
    0
    #4
    I do find most either go with one or the other, I also tend to find that people who work in terms or commonly have to work with other peoeple's code and vice versa tend to prefer OOP approaches.
     
    kblessinggr, Aug 17, 2009 IP
  5. ct2k7

    ct2k7 Peon

    Messages:
    457
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #5
    Hmm ok, although there's a team working on my project, I started it in procedural and have no intention of moving to OOP, it's complicated, and for me, ugly :(
     
    ct2k7, Aug 17, 2009 IP
  6. kblessinggr

    kblessinggr Peon

    Messages:
    539
    Likes Received:
    13
    Best Answers:
    0
    Trophy Points:
    0
    #6
    There's no sense in changing your style in the middle of a project especially if you're uncomfortable with the new approach.
     
    kblessinggr, Aug 17, 2009 IP
  7. joebert

    joebert Well-Known Member

    Messages:
    2,150
    Likes Received:
    88
    Best Answers:
    0
    Trophy Points:
    145
    #7
    I use a combination of both.

    My applications perform procedures, sometimes using objects where it makes sense to.
     
    joebert, Aug 17, 2009 IP
  8. Gray Fox

    Gray Fox Well-Known Member

    Messages:
    196
    Likes Received:
    8
    Best Answers:
    0
    Trophy Points:
    130
    #8
    OOP, makes modifications and upgrades much easier
     
    Gray Fox, Aug 17, 2009 IP
  9. premiumscripts

    premiumscripts Peon

    Messages:
    1,062
    Likes Received:
    48
    Best Answers:
    0
    Trophy Points:
    0
    #9
    OOP, no doubt about it.
     
    premiumscripts, Aug 17, 2009 IP
  10. szalinski

    szalinski Peon

    Messages:
    341
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    0
    #10
    i used to feel that exact way too, until i sat down and decided to learn it. it only took me about 1 day of solid practice to get the basics down (just reading the php.net docs doesn't really help at all til you try stuff out, print_r'ing and debugging etc). there's actually not much to it, really, all it does is make things easier imo. and if you do learn it, you'll be surprised at how easy it is to trot over to phpclasses.net and use their classes. :eek:

    'course, i'm still always learning it...but haven't got a clue what 'implements' does in a class, just can't seem to understand it. so i think i'm with you on that one, at least. :p
     
    szalinski, Aug 19, 2009 IP