SitePoint Sponsor

User Tag List

Results 1 to 25 of 63

Threaded View

  1. #1
    SitePoint Member
    Join Date
    Aug 2003
    0 Post(s)
    0 Thread(s)

    Question How to make OO code not bloated in PHP?

    Quoting Selkirk in another thread:

    My working definition for bloated in PHP is:

    Loads code that does not get used, loads data that does not get accessed, or performs calculations that do not contribute to the final product while servicing common or simple requests.
    One of the main concepts of OO programming is the coupling of the data with its procedures.

    The question is how can we be able to create OO applications in PHP without them being bloated (comments are a secondary problem imo)?

    I see two options:

    1) Use some persistency layer (ala SRM). Which introduces further problems as can be seen in$2677

    2) Invent some crazy way of converting classes and methods into procedural code during deployment

    Any other way?
    Last edited by nuncanada; Sep 12, 2003 at 18:30.


Posting Permissions

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