It's not a bad mindset at all. "Finishing" can be a goal and so can "learn a new thing in an enjoyable way". Sometimes I write code just because I get the urge to create a nifty data structure. Who cares if no one will ever use it or look at it again? I enjoyed making it.