Wisdom from comp.lang.perl.misc from the mid '90s, that's served me well my whole career: "_Always_ throw away the first version."
It provides two major benefits: 1) it lets you give yourself permission to take unwise shortcuts and h=just hack it together til it works, because 2) you've agreed with yourself it's going to get a ground up rewrite, which you'll approach with a much better understanding of the problem (and the solution and the customers and...)