SitePoint Sponsor

User Tag List

Results 1 to 5 of 5
  1. #1
    SitePoint Evangelist
    Join Date
    Mar 2005
    Posts
    448
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Question What's a good OO transitional book?

    I'm trying to make the leap from procedural programming to OO programming with my typical PHP site-building techniques like functions for headers and footers, form programming and CMS programming.

    Is there any book(s) out there that you can recommend that go through how a certain thing is done procedurally and then shows you how to restructure for OO without going too far down the path of OO when it isn't necessary?

    I'm very interested in taking my programming to the next level. Right now I'm at the point where I keep a functions.php file and a config.php file and that pretty much runs my apps. In practice it looks like this:

    PHP Code:
    <?php

    require_once("scripts/functions.php");
    require_once(
    "scripts/config.php");

    openDatabase();

    echo 
    getHeader("about-us""About Us"); // pageid, pagename

    // Insert dynamic or regular content here ...

    echo getFooter();

    closeDatabase();

    ?>
    Thanks! I'm looking forward to your suggestions.

  2. #2
    _ silver trophy ses5909's Avatar
    Join Date
    Jul 2003
    Location
    NoVa
    Posts
    5,466
    Mentioned
    1 Post(s)
    Tagged
    1 Thread(s)
    Sara

  3. #3
    SitePoint Wizard
    Join Date
    Oct 2005
    Location
    London
    Posts
    1,678
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Im just getting myself in to OOP....im reading this:

    http://www.amazon.com/Object-Oriente...5738938&sr=1-1

    Its very good.....its making OOP seem less of a dark art than i thought it was

    i dont really know what OOP has to do with making waffles though ?!

  4. #4
    SitePoint Evangelist
    Join Date
    Mar 2005
    Posts
    448
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Awesome, thanks for the suggestions. I'll definitely check into those.

    Sometimes it's hard to bridge the gap between procedural and OO because you got your "script" guys that just script it out quick and reasonably so because really all you're doing is a header and footer type stuff. Then, you have your hardcore OO guys that abstract everything and interface everything down to the tiniest problem which is unrealistic because the app will probably never use advanced OO by design (it's just a brochure site, haha). Get what I'm saying?

    Ok, thanks again for everything.

  5. #5
    SitePoint Enthusiast dakine's Avatar
    Join Date
    Dec 2006
    Posts
    82
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Professional PHP5 by Wrox is a really good book, it covers everything from OOP to SOAP and XML and using template engines like Smarty and heaps more.


Bookmarks

Posting Permissions

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