SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    $books++ == true matsko's Avatar
    Join Date
    Sep 2004
    Location
    Toronto
    Posts
    795
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Planning an application in PHP

    I've always just jumped directly into coding with little or no planning. However, after having changed an applications architecture due to coding inconsistencies and severe coupling, I've regretted not having planned anything out. And this doesn't only apply to OO, but design components, naming conventions, Javascript libraries and database tables.

    In terms of planning, how should I approach this issue? Should I just use a pencil and paper and figure out as much I can? Are there any online services? Should I always prepare a SRS or SPMP?

    What do you guys recommend?
    I can't believe I ate the whole thing

  2. #2
    Follow Me On Twitter: @djg gold trophysilver trophybronze trophy Dan Grossman's Avatar
    Join Date
    Aug 2000
    Location
    Philadephia, PA
    Posts
    20,578
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    I start with the data, since that's usually the center of most software we right. Designing the database requires you to think about all the data you might need to store and how you're going to work with it. Working out the complete schema is the first thing I do. First entities, then attributes, then refine it to columns, constraints, etc.

    After that, I decide what the major modules of the application will be. The parts of the site that are related and will share code, things like that.

    Beyond that, I don't do any planning myself. It comes out as it comes out. But for big projects, I use a framework, which promotes good organization and low coupling if you don't purposely try to combine layers where they shouldn't be combined. And lets me focus on coding what this application does, instead of the stuff every application does (routing, parsing input, etc.).


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
  •