Monday, March 9, 2009

Good Habit and Bad habit In PHP

There are some good habit while doing programming in php

1.Reflective yet concise names.
2.Manageable, focused functions.
3.Documented functions and classes.
4.Programming defensively.
5.Reusable functions with parameters.

There are some bad habit in PHP.

1.Ambiguous or meaningless names
2.Really long functions (that do a lot)
3.Missing and redundant function documentation
4.Not handling errors at all
5.Similar sections of code

No comments:

Post a Comment