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.


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Reply via email to