I sat down last night and managed to get three-quarters of the way through a feature for a Rails app.

This morning I realised there was an easier way to delivering the feature. I trashed my original idea and wrote the full feature on the train in ten minutes.

This happens so many times in programming.