Online Coding (Mainly PHP)

Status
Not open for further replies.

Reddo

Posts: 7   +0
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 :)

Anyway,

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.

Thanks.
 
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.
 
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
 
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 :)
 
Dude.. Go to http://cve.mitre.org/cve/cve.html

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.
 
Status
Not open for further replies.
Back