If you are one of those who can replay a level in a computer game to unlock all possible achievements, if you are more afraid that your work will not be accepted with enthusiasm than the deadline for it, then you are a perfectionist. A person who is not always ready to lay down his life for the sake of an ideal result, but will still be tormented that he did not achieve it. To stop this, try using DHR - Good Enough Solutions.
We know that the ideal does not exist, it is unattainable. But we also know that working like a hogwash is totally unacceptable. Where is the border where you can stop and not waste your time and resources, trying to do the job perfectly, because it’s already good? If there is a technical assignment with clear criteria, the question disappears by itself. But in the rest the situation will help DHR.
First, you need to choose from the general list the problem with which we will work. Whether it is choosing a meal for dinner or choosing the best library for programming the jamming module. Now let's calculate how much time we have already spent on solving the problem. Just two hours or two hours a day for a week? And how much more will we potentially spend? As many? This is necessary in order to be horrified and understand that the problem is not that we did little work on the solution, but that we set an unrealistic goal for which there is no solution.
This means that you need to lower the criteria, allow yourself not to strive for an abstract ideal. But you don't need to count the percentages of the error, instead, you should ask yourself a direct question: what exactly bad will happen if I implement the invented "imperfect" solution of the problem right now? What are the quantitative losses and what will I incur? Most likely, the answer will turn out to be “close to zero”, but if there is real damage, it is necessary to assess it and make a decision on minimization. Only this will be a completely different task, and we have already solved the first one. Not perfect, but it's not required - the whole world only wants you to do your job well enough.