A couple of years ago, Salesforce MVP Kevin O'Hara released on GitHub the SFDC-trigger-framework. You can find it at https://github.com/kevinohara80/sfdc-trigger-framework. There are a number of trigger frameworks available for the platform, but this one is my favorite and the one I highly recommend. Since SFDC-trigger-framework is a bit of a mouthful, I will refer to it as the framework. The framework allows us to separate the logic from triggers in a way that allows us to create a deterministic order for those triggers to fire, and in a better way, for us to test the logic triggers. Because the trigger interface is controlled by Salesforce, very little of the actual trigger file will be different than traditional trigger development. Specifically, we still have to determine the context of our trigger and specify that in the trigger file for salesforce:
trigger AccountTrigger on Account (before insert, before update, before delete, after insert, after update, after...