10+ years, and even with that, know that no matter what, things will break. Getting better at code means you will work on more complex things and they will fail at times. Just start counting your brackets and ;.
Comment by Anthony Rossbach on "How many years have you been programming for and what's the single best take-away/lesson in your entire career?" | Hashnode