The week before last, I added a new function to my new app that I had been thinking about for a long time. Last weekend, I threw all the work away and reimplemented the UI. Nevertheless, the time before that was not wasted effort, because without this work I would never have come up with the idea of how to implement it properly.