The First Step

Discussion in 'PHP' started by gr8webseller, Nov 16, 2009.

  1. #1
    I saw lots of scripts with 1000's of files in it,,,,, and inside each files there are lots of functions,,,,,,

    so, to code a big site, it is necessary to plan first,,,,,

    how you will plan to write a script ?

    do u use any softwares to draw flowcharts, or any algorithms,,,

    i have started with PHP and interested to know these,,,,,
     
    gr8webseller, Nov 16, 2009 IP
  2. shubhamjain

    shubhamjain Active Member

    Messages:
    215
    Likes Received:
    2
    Best Answers:
    1
    Trophy Points:
    63
    #2
    no need to think of whole site. Try to make it in blocks. Like first registration, then cookie management etc. :)
     
    shubhamjain, Nov 16, 2009 IP
  3. mastermunj

    mastermunj Well-Known Member

    Messages:
    687
    Likes Received:
    13
    Best Answers:
    0
    Trophy Points:
    110
    #3
    architecture and code organization is important.

    most php development is done as per modular programming and hence each logical functionality is divided into functions to make good reuse of them..

    if i am to plan a big project, i would do something like this:
    1. List out features / components of project
    2. Make list of things to do in each component.
    3. Prioritize which module to make first.
    4. Begin a modular programming (started OOP recently) and keep code as clean as possible.

    For GUI, you can embed output of different functions into html code as and when required, however i would recommend to keep embedding only till variable display and not keeping whole bunch of lines or loop inside html.
     
    mastermunj, Nov 16, 2009 IP
  4. gr8webseller

    gr8webseller Peon

    Messages:
    1,097
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    0
    #4
    thanks for your nice info,,,,,

    do it is necessary to draw a E-R diagram for big projects
     
    gr8webseller, Nov 16, 2009 IP
  5. mastermunj

    mastermunj Well-Known Member

    Messages:
    687
    Likes Received:
    13
    Best Answers:
    0
    Trophy Points:
    110
    #5
    its always good to draw diagrams to understand flow and integration points, specially for big projects where many programmers are at times involved and several integration points are available amongst components..
     
    mastermunj, Nov 16, 2009 IP
  6. gr8webseller

    gr8webseller Peon

    Messages:
    1,097
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    0
    #6
    thanks for the info :) :)
     
    gr8webseller, Nov 16, 2009 IP
  7. Kelly2

    Kelly2 Peon

    Messages:
    79
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #7
    It all completely depends on the website you are trying to create. If you are looking for a website that has to do with thousands of users, with customization per user and everything else then I wouldn't be surprised if you had tons of files.

    However, if you're trying to create a website that will only have a few pages with information on it, expect a few folders, pages or such.

    Planning does great things.
     
    Kelly2, Nov 17, 2009 IP