You are here: Re: HOW-TO: avoid coding problems and find errors « PHP Programming Language « IT news, forums, messages
Re: HOW-TO: avoid coding problems and find errors

Posted by Umberto Salsi on 01/29/07 14:47

"P Pulkkinen" <perttu.POISTATAMA.pulkkinen@POISTATAMA.elisanet.fi> wrote:

> This all below is my opinion, not any official post though...
>
> 1) have a debugging/error handling system. It is not so difficult to make, I
> have made one myself and it really often helped us in development.
>
> 2) test code ALL the time, after every couple of lines, not in big chunks.
>
> 3) leave debugging features inside, even if you use simple lines like:
> echo "now variable i = $i";
> comment it, when you don't need it, but keep it there!
>
> 4) name varables in a way that even others understand them
> $person['phone'] is good name , $p['p'] is bad.
>
> 5) put useful comments here and there. don't think commenting is waste of
> time. avoid excessive egoboost comments, though.

6) Libraries and most used chunk of code should be documented using
phpDocumentator or PHPLint (this latter is mine :-). Every programmer using
these tools should rely on the interface specified in the documentation,
and this documentation should be always available on-line via WEB.

7) Submit your program to a formal validator, as PHPLint.

8) Keep every project under a release version system like CVS. It is really
useful also when there is only one developer.

Best regards,
___
/_|_\ Umberto Salsi
\/_\/ www.icosaedro.it

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация