which programming processes in more complex?

Discussion in 'PHP' started by webshore88, Sep 17, 2011.

  1. #1
    the question is, which programming process is more complex 1)OOP 2)procedura;

    I am working with OOP for more a year and so I think OOP makes programe more flexible, robust, organized, secure and clean. what do you think?:cool:
     
    webshore88, Sep 17, 2011 IP
  2. Rukbat

    Rukbat Well-Known Member

    Messages:
    2,908
    Likes Received:
    37
    Best Answers:
    51
    Trophy Points:
    125
    #2
    Complex has nothing to do with flexible, robust or secure.

    Flexible? Procedural. Clean? OO, if you treat classes like black boxes, but less clean if you have to write the classes.
     
    Rukbat, Sep 17, 2011 IP
  3. sarahk

    sarahk iTamer Staff

    Messages:
    28,899
    Likes Received:
    4,555
    Best Answers:
    123
    Trophy Points:
    665
    #3
    If you try hard enough you make anything "too complex". The trick is to keep it well documented so you can return after a break and still follow the logic.

    OOP works for anything that isn't completely straight forward.
     
    sarahk, Sep 17, 2011 IP
  4. jazzcho

    jazzcho Peon

    Messages:
    326
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Brainfuck

    this prints Hello World

    
    +++++ +++++            
    [                       
        > +++++ ++              
        > +++++ +++++           
        > +++                   
        > +                     
        <<<< -                 
    ]                   
    > ++ .                  
    > + .                   
    +++++ ++ .              
    .                       
    +++ .                   
    > ++ .                  
    << +++++ +++++ +++++ .  
    > .                     
    +++ .                   
    ----- - .               
    ----- --- .             
    > + .                   
    > .                     
    
    Code (markup):
     
    jazzcho, Sep 18, 2011 IP
    sarahk likes this.