Here's a sample Powershell script to restore everything from a site recycle bin.
$ritems = (Get-SPWeb "http://<site>" ).RecycleBin | Select IDforeach($item in $ritems) { (Get-SPWeb "http://<site>").RecycleBin.Restore($item.ID) }
Useful advice for SP2010 development
Master List of SharePoint 2010 Custom Development Best Practiceshttp://nikspatel.wordpress.com/2011/06/22/sharepoint-2010-development-best-practices/