SitePoint Sponsor |
|
User Tag List
Results 1 to 3 of 3
Thread: The Correct Way To Code?
-
Aug 9, 2007, 05:33 #1
- Join Date
- May 2007
- Location
- West Midlands, UK
- Posts
- 173
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
The Correct Way To Code?
Ok, Here goes.
I hear alot of people saying that they wish people would code there PHP correctly. Im kind of confused.
Now in HTML & CSS (Which is what im used to) you have documents that outline the standards, and the way things should be done, you follow the rules, your on the right track...sort of. Is there anything like this in PHP?
To my knowledge, the only thing i know so far that i think aims towards correct coding is using Functions and Classes/Objects to add structure to code and for ease of use for everyone. Oh and stuff like validating everything that could pose a security risk.
Is there any documents or governing rules that can help me to make sure my PHP is up to scratch? I want to know what im doing is correct.
Thanks.
-
Aug 9, 2007, 06:09 #2
- Join Date
- Feb 2005
- Posts
- 581
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
A lot of people seem to go by the PEAR standards but I prefer to use my own. I think when people say "correctly" they mean use the best and/or most efficient function or class for the job.
I will not flame the newbies,
I will not flame the newbies,
I will flame the newbies...
Table free is the way to be!
-
Aug 9, 2007, 07:39 #3
- Join Date
- May 2007
- Location
- West Midlands, UK
- Posts
- 173
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
BluDragon: Thats what i thought. There is the manual, and obviously following the rules set out in the manual is the way to go.
Bookmarks