Update:Archive/2.0/Developers/Best Practices: Difference between revisions

Jump to navigation Jump to search
m
Line 22: Line 22:
=== Do ===
=== Do ===
* Create functions for anything you will do more than once.
* Create functions for anything you will do more than once.
* Create comment blocks before functinos in [phpDoc http://manual.phpdoc.org/HTMLframesConverter/default/] format.
* Create comment blocks before functions in [http://manual.phpdoc.org/HTMLframesConverter/default/ phpDoc] format.
* Create meaningful to-the-point inline comments when necessary.
* Create meaningful to-the-point inline comments when necessary.
* Clean and validate all inputs to prevent SQL injection or malignant HTML.
* Clean and validate all inputs to prevent SQL injection or malignant HTML.
3,035

edits

Navigation menu