Unpopular opinion of the day - sometimes it makes sense to do a re-write π¬π¬π«₯π
I have the rule of three:
1. First draft helps you understand the problem (and you do rm *)
2. Second draft makes it work
3. Third re-write - make it beautiful
You pay interests in the future.
1. In the case I am working for a client, I am trying to explain, that the final bill will be 200-300% higher. Sometimes this is OK (time to market). Often they agree with me. Sometimes they walk away.
2. When working for our own company the βrm *β phase is strictly required.