Helping ordinary people create extraordinary websites!

Develop Rock-Solid Code In PHP: Lay The Foundation, Part 1

By Amol Hatwar
2004-01-21

Keep it simple
Your code should be easily comprehensible, read well, and be well documented. To reduce the time needed to familiarize yourself with your own or others' code, maintain a common naming and coding convention throughout a project. Investing time to ensure these things pays off when the need to maintain code arises.

Documenting code is better done while you are programming it. Tools are now available that can parse all your scripts and make neat looking documentation in HTML for you. If you change the behavior of the code, change the documentation accordingly. Having documentation about code that does undocumented things is of no real use.

Ensure that your code is documented, simple, and easy to comprehend. It helps in the long run.



Tutorial pages:

First published by IBM developerWorks


 1 Votes

You might also want to check these out:


Leave a Comment on "Develop Rock-Solid Code In PHP: Lay The Foundation, Part 1"
You must be logged in to post a comment.

Link to This Tutorial Page!


GET OUR NEWSLETTERS