There are several ways of setting up your workstation in for Joomla! development. Some suggestions can be found at Setting up your workstation for Joomla development.
Next, you should familiarise yourself with Joomla! Secure coding guidelines and the short article on Development Best Practices.
For more information, see Joomla! Development for Beginners .