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

รับข้อมูลจาก "http://www.noklek.com/wiki2/index.php/Pear_Coding_Standards"
เครื่องมือส่วนตัว