Pear Coding Standards
จาก Wiki2
การเขียนโปรแกรม PHP ควรมีมาตราฐานในการเขียน Code เพื่อให้ง่ายต่อคนอื่น และตัวเอง และ Pear ก็กำหนด Code Standards ไว้น่าศึกษาหรือทำตาม
Why have CodeConventions?
Code conventions are important to programmers for a number of reasons:
- 80% of the lifetime cost of apiece of software goes to maintenance.
- Hardly any software is maintained for its whole life by the original author.
- Code conventions improve the readability of the software, allowing engineers to understand new code more quickly and thoroughly. If you ship your source code as a product, you need to make sure it is as well packaged and clean as any other product you create.
- Plan to use Pear in our program
Guideline
- Indent
Link
- Pear Coding Standards http://pear.php.net/manual/en/standards.php
- Geeklog Coding guide line http://wiki.geeklog.net/index.php/Coding_Guidelines
