Background Image
Web
Development
Tools
Tool...
49 Projects
Web Development Project
Web
Development
Project
Project Guide: Programming
Creator:Graphix
Last edit:2010-11-02 19:57:37

In this article you will learn how to program your project.

Writing clear code

When writing your code (and especially if it's open-source), it should be written properly. A few things you should keep in mind when programming.

  • Comments - When writing your code, add comments to every piece your write. Adding comments after writing the code can be confusing, as you can forget what it exactly does. Also, if you need a modification of the code in a later stadium, having comments that lead you through every step of the program will be extremely handy.

  • Script description - At the top of each function/entire script you should write what it does, what arguments it takes, and what it echo's or returns


For more information, see our Code guidelines article.

Debugging your code

If you forgot or neglected to add comments, debugging your code will be more difficult. So keep in mind to add comments! All debugging tips and tricks can be found in our Code Debugging article in the Programming guide.


Testing your code

  • Make sure you test your code after every piece of code

  • Always echo variables if you are not sure whether they are of the correct format and/or value.


List of links to code references



Comments
Latest news
New project: Math Quiz
2010-11-09 18:07:48
Read more...

New project: Custom Messagebox
2010-11-06 19:10:50
Read more...

New project: Visitor Counter
2010-11-01 21:39:04
Read more...

New project: Image Editor
2010-11-01 21:37:27
Read more...

New project: Image Generator
2010-11-01 21:33:05
Read more...

Projects Contact © 2010 WDP - All rights reserved Terms and Conditions Log in