Re: [PHP] [Q] Development Best Practices
From: Chris Hayes (chayes_at_antenna.nl)
Date: 11/18/03
- Next message: Decapode Azur: "diff"
- Previous message: Derek Ford: "Re: [PHP] About iMail Help"
- In reply to: Rob Burris: "Re: [PHP] [Q] Development Best Practices"
- Next in thread: Pete M: "Re: [Q] Development Best Practices"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Tue, 18 Nov 2003 11:21:05 +0100 To: php-general@lists.php.net
At 04:20 18-11-03, you wrote:
>Adam wrote:
>
>>My question, how do you guys build your pages? Do your scripts generate
>>all the HTML? I'm looking for tips and resources. Remember for my first
>>site I've embarked on a fairly large site. Code maintenance will be an
>>issue for me as I need to enhance and fix it later on.
My mistake in coding is that I always start with the parts I know I can do,
then slowly add the other functionality. I would call this an organic way
of coding, and the more additions I make, the more little changes i need to
make to the existing code until it is full of extra conditions. This is
partly because my chef keeps inventing new functionality, but mostly
because I did not know how to write a proper plan (i did try).
I tried my own way, i tried Unified Modeling Language (UML) , but that was
a bit too heavy for a one-person coding project.
Right now I am rigourously reorganising the whole mess, which would not
have been necessary had I made better plan.
The most simple rule is: divide functionality. Do not mix logic with
presentation. Have your SQL part, your logic part and your presentation part.
And of course add loads of comment while you are working. Best for the
thinking process is to first make comments of the steps you want to make,
and only then add the code. I noticed that while writing the comments, I
would adjust my plans.
- Next message: Decapode Azur: "diff"
- Previous message: Derek Ford: "Re: [PHP] About iMail Help"
- In reply to: Rob Burris: "Re: [PHP] [Q] Development Best Practices"
- Next in thread: Pete M: "Re: [Q] Development Best Practices"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|