Instead of placing your business code in the OnValidate trigger of a field, you can also subscribe to system generated events. For each field, we can subscribe to the OnBeforeValidate event and the OnAfterValidate event. These events are triggered, as their name suggests, before and after the code we place in the OnValidate trigger.
Subscribing to these events can be useful to avoid making modifications to the objects that are shipped by Microsoft so that future updates are easier to implement and merging code is prevented.