Online Coding (Mainly PHP)

By Reddo
Feb 16, 2008
  1. I suppose it goes here, as it's the web and it's about web design, if not please move it.. I wasn't sure where to go :)


    Can someone come up with some guidelines to good practice for coding please? As i've been coding for a while, but i know its not normally with good practice.

  2. Nodsu

    Nodsu TS Rookie Posts: 5,837   +6

    If you care about security, stop using PHP :p

    Any guidelines would be language- and application-specific so you would have to explain a bit more.
  3. Reddo

    Reddo TS Rookie Topic Starter

    Well kind of tips to making the code user friendly,

    I.e. documenting stuff as you go (Good tips with documentation?)
    carefully indenting your code (What guidelines are there for that?)

    That sort of stuff? :)

    And PHP isn't THAT bad, surely? :p
  4. jobeard

    jobeard TS Ambassador Posts: 9,145   +597

    Techspot is primarily systems management, not programming. There are a few of us
    with programming backgrounds, but you would be well advised to look elsewhere,
    especially given the broad question you ask -- it's a field of study unto itself :)
  5. Nodsu

    Nodsu TS Rookie Posts: 5,837   +6

    Dude.. Go to

    Search by keywords for common CGI languages. Try PHP, Perl, Python, Ruby :p
    Of course, that statistic is somewhat offset because PHP is the most common CGI language and usually the thing that inexperienced people start off with..

    Anyway.. Since you are asking the question, you probably aren't capable of producing proper documentation for your projects (UML diagrams and stuff). What you can do is commenting it properly. The ideal case would be that someone reading only your comments would be able to produce code with the same functionality as yours.

    PHP indenting conventions should be explained in any PHP book/guide/tutorial.
Topic Status:
Not open for further replies.

Similar Topics

Add New Comment

You need to be a member to leave a comment. Join thousands of tech enthusiasts and participate.
TechSpot Account You may also...