How do I stop overcomplicating my code?

Posted by Innovator-X@reddit | learnprogramming | View on Reddit | 39 comments

I always overcomplicate things when I code. The following scenario always happens:

  1. I need to find a solution to a problem.

  2. I make a very very terrible overcomplicated and ugly solution.

  3. I look for another way to solve the exact same problem online only to find out it was very simple to begin with. Solution is elegant, very succinct and short.

I know that with experience things will get better but my question is: do I need to deliberately practice this or will it come naturally? Thanks.