A page on the wiki is available to describe how you can develop a plugin or full module to Dolibarr and deploy it. This can be done in most cases without modifying Dolibarr core code.
Tutorial is available on Dolibarr Wiki at the following page:

http://wiki.dolibarr.org/index.php/Module_development