Back in the day, I wrote a lot of code (yes, FORTRAN - back when computers wrote only capital letters). There was a theory that all routines should be short - 10 liens of core or less - and if it didn't work the first time, you should start over.
I think the reasoning was, it's hard to see a mistake you have already made. If starting over is easy enough, that can be a faster method. In my humble opinion, the problem is it cuts you off from a chance to learn, so you are still subject to making the same error another time.
Of course, there were a lot of theories back then. There probably still are, but I don't write code any more ... :^)