Adding to this. I usually use one of the below;
Walk away - if you're a perfectionist,the best thing you can do is to abandon ship, totally let go, don't worry, your hyperactive brain will work tirelessly in the background and bubble up the solution.
Read a good novel - most devs and software oriented peeps only read documentation and tutorials! Seriously! find books to read that have nothing to do with whatever you are currently working on. I recommend the Hitch hiker's guide to the Galaxy (I read it every year).
Perfectionist here 😭. The problem with this is that no software is perfect and perfectionism is impossible to achieve, at least from your own highly subjective perspective. In the end, it all becomes a wild and annoying snark hunt.
We're a place where coders share, stay up-to-date and grow their careers.
We strive for transparency and don't collect excess data.