Re: how to write good code

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sat, 30 Aug 2008 20:17:18 -0400, Shiplu wrote:

>I wanna know how to write good code in php.
>Not oop stuff. I wanna know how to write a good php code file.
>documentation, comments. indentation etc.
>what are the good practices??

Find out what "bad" is by reading this:

http://thedailywtf.com/Series/CodeSOD.aspx

Then, don't do it like that!

But seriously, you might want to check out this page on Wikipedia, and
follow some of its references:

http://en.wikipedia.org/wiki/Programming_style
-- 
Ross McKay, Toronto, NSW Australia
"Let the laddie play wi the knife - he'll learn"
- The Wee Book of Calvin

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


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux