How to throw away a bad idea

This week, I threw away 5 months of work on a project after realizing I was going in the wrong direction.