Great article in a tutorial series by David Fiedler on how to write a WordPress plugin.
Including:
Select a unique name for the plugin and main function
Create directory, main and readme files with header and license information
Write and debug the code
Zip up the code directory, and install plugin on WordPress for final testing
Article at: http://www.htmlgoodies.com/beyond/webmaster/projects/article.php/3877226