Page 1 of 3 123 LastLast
Results 1 to 10 of 24
  1. #1

    Default Object-Oriented PHP or traditional PHP


    I have posted a thread regarding web development but I decided to put this topic in another thread, anyway. Unsa inyo approach kung mag code mo ug PHP? object-oriented or katong traditional na PHP nga dili gagamit ug objects. Akong na learn man gud sa school is katong traditional PHP, kung mag search ko sa internet ug codes some are written in OO busa dili ko kasabot. I know the concepts of OO though pero murag galisod ko ug migrate coz im used to the old one. What would you prefer?

  2. #2
    Elite Member noy.juan's Avatar
    Join Date
    Mar 2010
    Gender
    Male
    Posts
    1,521
    Blog Entries
    1

    Default Re: Object-Oriented PHP or traditional PHP

    Quote Originally Posted by boypahak View Post
    I have posted a thread regarding web development but I decided to put this topic in another thread, anyway. Unsa inyo approach kung mag code mo ug PHP? object-oriented or katong traditional na PHP nga dili gagamit ug objects. Akong na learn man gud sa school is katong traditional PHP, kung mag search ko sa internet ug codes some are written in OO busa dili ko kasabot. I know the concepts of OO though pero murag galisod ko ug migrate coz im used to the old one. What would you prefer?
    i usually use both... it has its pros and cons.... AFAIK mas paspas ang OOP... correct me if im wrong...

    sa akong gi buhat nga framework, kay i use OOP on core script, while tradition on non-core/utility script..

  3. #3

    Default Re: Object-Oriented PHP or traditional PHP

    @noy.juan, paspas interms of what? code execution, development,.. etc?

  4. #4

    Default Re: Object-Oriented PHP or traditional PHP

    use OO, mas ma organize, clean and handy imo code, pwedi pa na nmo ma re-use imo code sa mga upcoming PHP projects nmo in the future.

    if like what you said na you understand OO concepts then youll understand what i ment.

  5. #5

    Default Re: Object-Oriented PHP or traditional PHP

    noy.juan: pwede diay together OOP and the usual PHP? can you give me some examples how you use both? I dont know lang pud kai para sa akoa, from learning the basics of OO PHP murag lahi ra jud sya. ambot lang sad kai as of now dili pa in ana ka wide akong knowledge sa OO PHP busa dili pa nako sya ma appreciate.

    cebugdev: ah ok, so your pro OO. organize, clean and handy - maybe later if ever I use OO masabtan nako imo pasabot. like I said Im new to OO PHP, but yeah I know how powerful OO is coz ive gone through this sa akong java.

  6. #6
    Elite Member noy.juan's Avatar
    Join Date
    Mar 2010
    Gender
    Male
    Posts
    1,521
    Blog Entries
    1

    Default Re: Object-Oriented PHP or traditional PHP

    Quote Originally Posted by boypahak View Post
    noy.juan: pwede diay together OOP and the usual PHP? can you give me some examples how you use both? I dont know lang pud kai para sa akoa, from learning the basics of OO PHP murag lahi ra jud sya. ambot lang sad kai as of now dili pa in ana ka wide akong knowledge sa OO PHP busa dili pa nako sya ma appreciate.

    cebugdev: ah ok, so your pro OO. organize, clean and handy - maybe later if ever I use OO masabtan nako imo pasabot. like I said Im new to OO PHP, but yeah I know how powerful OO is coz ive gone through this sa akong java.

    for core script i used php class, and for utility script i use traditional

    afaik, kusog ang oop interms of execution kay mas organized siya compared to tradidional...

    OOP is like a toolbox, dali ra kaayo pangitaon ang mga tools kay naka organize man

    traditional, is well classic or how the php should be
    like

    OOP
    PHP Code:
    class db{
              var 
    $con;
              function 
    db(){
              }
    }
    $db = new db(); 
    Tradidtional
    PHP Code:
    function get_user(){
              global 
    $db;
               
    // code
    }

     
    get_user(); 
    i used OOP on codes that are used most of the times while traditional for those rarely used

  7. #7

    Default Re: Object-Oriented PHP or traditional PHP

    simple...

    if bago pa ka sa PHP syempre imo code kay SPAGHETTI

    ig ninja na kas PHP aw mao nanang OOP with MVC

    haha rhyme lagi? takdan man sab ta aning killer bee

  8. #8

    Default Re: Object-Oriented PHP or traditional PHP

    Actually mas paspas ang tinamban nga pagka-code compared sa OOP. ang advantages lang sa OOP is mas dali cya gamiton and mas organized imong mga functions.

  9. #9
    Elite Member noy.juan's Avatar
    Join Date
    Mar 2010
    Gender
    Male
    Posts
    1,521
    Blog Entries
    1

    Default Re: Object-Oriented PHP or traditional PHP

    medyo OT ko guys/TS,

    im looking for a web developer naa diri -> https://www.istorya.net/forums/jobs/3...developer.html

  10. #10

    Default Re: Object-Oriented PHP or traditional PHP

    akoa kay mix tirada.. mura raman gud nig pambata gud...

  11.    Advertisement

Page 1 of 3 123 LastLast

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