What are the ways to avoid mixed DML errors?

TechnicalSenior Salesforce DeveloperSalesforce Developer