Mark Jaquith has put up a nice article on “How to write a solid and stable WordPress plugin“. It’s more of a rough overview than a detail piece, but he promises more details down the line in separate articles.
This is worth looking at if you write WP plugins, even if you’re pretty experienced — if for nothing more than to check that you’re not missing something…. 😉