30 June 2011

Defendsive Programming

1. Handle unexpected conditions


2. Process external systems data properly

3. Test your code
 
4. Monitor your site errors and act upon them
 
5. Do not disclose errors to the users
 
6. Damage control


7. Backup

8. Do what you can as you can never get defensive enough


* Recommended reading


http://en.wikipedia.org/wiki/Defensive_programming
http://gettingreal.37signals.com/ch09_Get_Defensive.php

0 comments:

Post a Comment

 
Design by Free WordPress Themes | Bloggerized by Lasantha - Premium Blogger Themes | Best Web Hosting