You are here: How-to: avoid some code problems in advance « PHP Programming Language « IT news, forums, messages
How-to: avoid some code problems in advance

Posted by P Pulkkinen on 02/06/07 08:27

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 variables 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.

6) Learn to use error_reporting();

7) When you ask questions in a newsgroup, take time to formulate
your post. Don't push your opinions on where the error
might be, since if you knew that, you wouldn't have needed
help in the first place.

8) Remember "Give-and-receice" principle in newsgroups:
Give help, give thanks to those who help you =>
You'll receice help, you'll receive thanks when
you help someone.

 

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

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