Page 3 of 3 FirstFirst 123
Results 21 to 24 of 24
  1. #21

    Default Re: Object-Oriented PHP or traditional PHP


    Quote Originally Posted by papzkie View Post
    OOP stands for Object Oriented Programming, pero ang OOP ila gipasabot diri kay PHP na programming language
    ahh, ok salamat!

  2. #22

    Default Re: Object-Oriented PHP or traditional PHP

    Quote Originally Posted by moodsey211 View Post
    take for example if gamay ra kaayo ang code nga needed nimong i-balik balik. instead of making a class just of a few lines of codes, mas favorable if imo na lang siyang himuan ug function.
    Exactly. Use what is only needed to finish a job. In short, use the right tool for the right job.

    It's been awhile since I played PHP so I'm not sure how much PHP5 OOP concepts (PHP5 has the proper implementation of OOP, PHP < 5 OOP all sucked ) creeped into the PHP programming nowadays. So many frameworks have done a great job streamlining the processes of requests, e.g. mapping a url "/blogread/1234" to a function of a controller called Blog->Blog_Read($id) which seems to suggest it is breaking the sequential straightforward programming that we used to. Before, I'm following a kind of standard coding like this:
    PHP Code:
    <?php
       
    //all php code
    ?>
    <html>
       <!-- all html code here with mixed php -->
       <?= $variable ?>
    </html>
    So if it worked OK before, then I don't see the reason changing it now. Unless you are constrained by the framework to use OOP or your business model is so large it requires you to.

  3. #23

    Default Re: Object-Oriented PHP or traditional PHP

    I prefer OOP, organize then dali ra mag trace if ever nag maintain nlang ka

  4. #24

    Default Re: Object-Oriented PHP or traditional PHP

    Nindota ani oi karon pako kasud ani nga thread da... interesting jd..

  5.    Advertisement

Page 3 of 3 FirstFirst 123

Similar Threads

 
  1. PHP or ASP?... Unsa diay mas maayo nga studyhan?...
    By miguelboom in forum Programming
    Replies: 79
    Last Post: 01-05-2010, 02:35 PM
  2. Looking For: PHP or ASP Programmer
    By Vishadomini in forum Jobs
    Replies: 12
    Last Post: 10-31-2008, 09:59 AM
  3. PHP OR RUBY?
    By weblizzer in forum Programming
    Replies: 19
    Last Post: 07-21-2008, 01:13 PM
  4. php or sql lessons
    By wynboost in forum Websites & Multimedia
    Replies: 3
    Last Post: 09-21-2006, 10:09 PM
  5. Replies: 2
    Last Post: 06-08-2006, 04:44 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
about us
We are the first Cebu Online Media.

iSTORYA.NET is Cebu's Biggest, Southern Philippines' Most Active, and the Philippines' Strongest Online Community!
follow us
#top