I got tired working on plugins and writing the same code snippets all over again, looking in the same old tutorial sites or my favorite WP 3 Plugin Dev book. So I released a startup script for plugins – http://wordpress.org/extend/plugins/dx-plugin-base/ .
It contains most of the important snippets required for every plugin – registration of custom post types or taxonomies, registering activation and deactivation hooks, admin pages, metaboxes. I’m going to add widget/shortcode registration with some samples. This would make it easier to use it as a new plugin startup script and save some time about it.
I also brainstorm on the idea of making it hookable with parameters so all functions are dynamic and the script could be extended directly with inheritance or composition. Still I need to think more generally whether it would be practical and doable for all functions.