Re: how to write good code



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
.



Relevant Pages

  • how to write good code
    ... I wanna know how to write a good php code file. ... documentation, comments. ... indentation etc. ...
    (php.general)
  • Re: Bye bye XP hello fixed price. Challenging question.
    ... >>that a method that practices 'all' of the processes is a traditional ... >would recognize today as Agile. ... However, in the mid-70s Waterfall ... >>it took up non-development time and the code was the documentation. ...
    (comp.object)
  • Re: Bye bye XP hello fixed price. Challenging question.
    ... Agile methods are similar, in many ways, to the kinds of methods used ... or even the Space Shuttle used practices that we ... However, in the mid-70s Waterfall ... >it took up non-development time and the code was the documentation. ...
    (comp.object)
  • Re: ANN: Dao Language v.0.9.6-beta is release!
    ... >> we can remove part of the existing documentation? ... with scope by indentation, want to introduce braces. ... Python has clear constructs that mark where suites begin. ...
    (comp.lang.python)
  • Re: HIPAA certs
    ... Chris Berry wrote: ... >> I have a few clients who are doctors running small practices. ... >> Each has approached me about the HIPAA certs in the last week. ... vendor to provide you with a documentation on hipaa compliance as i'm ...
    (Security-Basics)