Wednesday, October 1, 2008

Best Practises

* Never take short cuts.
--> don't take hacks
--> Working code rarely gets human time :)

--> and our hacks, short cuts will never be made gentle.

* Good algorithms are always good.

* Remember the next person to read your code is not YOU.

--> comments.

--> There is no such thing as over commenting.

--> Align text properly. avoid tabs, use spaces (see not all are using same editor)

--> Follow coding guide lines.

* CODE REVIEWS
--> it is not responsibility of code reviewers to catch bugs in your CODE.

--> What to review?

--> How will you write that code?
--> how will you use that code?
--> what testing will you do for that code?

--> what if you are a hacker, what are you going to do with that piece of code?

* Be in Users shoe
-> always use your code.

* Inject experience into your team.

No comments: