This isn't so much a code-related question as it is a question of mental health related to coding in general. I apologize if this is the wrong stack exchange for this question.
I have a horrible issue when it comes to coding. I think I'm fairly good. I have become quite proficient in object-oriented practices, as well as keeping relational methods tightly coupled and highly reusable. I have been coding for over a decade now but my problem has never gone away.
My problem is not coding itself, its how I approach it. The only time I can actually finish a script is when I am doing it for money. I have never finished my own project because I always end up giving up on it. Not because it isn't working, but because I always think there is a better way to code what I am trying to accomplish. So I will revise my code, and then revise it again. Then I will revise it again. Then, if I'm happy with it and I run into a situation where I can optimize a method in order to make reuse of it slightly better, I will revise the entire class most of the time.
I will end up finishing a project of my own half way and then just removing the repo and forgetting about it. Then I'll go to five guys and pound 3 hamburgers and hate myself for the next 2 days. Rinse and repeat.
The revisions I make to my code constantly does not make a significant difference in terms of the speed of execution. All it does is make finishing projects impossible for me because I am never 100% satisfied with them.
Another example is I will take a working class from the internet and implement it into my project, but I will rewrite the entire thing so it matches all my other code. Even the formatting has to be the exact same. It's not that I'm doing it to try and understand how the class works (because I do), it's that I need it to look like the rest of my code.
The only time I can finish a project is when it is for someone else and there is money involved. In which case I can curb my OCD and just kind of push through to get things done as fast as I can.
Has anyone else ever gone through this kind of thing before? I'm calling it OCD because I'm guessing that's what it is. This level of perfectionism can not be healthy and I'ts driving me insane. I don't know what to do. I try to push through my own projects but it's just so discouraging.
Any help or insight from someone who has gone through this would be greatly appreciated.
Aucun commentaire:
Enregistrer un commentaire