What is the best way to handle losses in trading?

What are the recommended practices for managing and learning from losses encountered during trading?,