The Best Code I Have Ever Written Is The Code I Never Wrote
The best code I have ever written is the code I never wrote. It works exactly as intended. There are no bugs, ever. It doesn't increase complexity of the application. Other people don't need to struggle to understand it. It gets never outdated.
Therefore don't write code unless you really have to.
Therefore don't write code unless you really have to.
You might enjoy also other posts on effective development.