Thorough commenting and reasonable testing of Notifications and Triggers.