Nobody is perfect! Even the most seasoned developers have made mistakes – it’s all just part of the learning process.
One mistake that is so common in software development is accidentally pushing secrets to a public repository 🙈🙉🙊
Fortunately, there are lots of different guardrails you can put in place to help prevent the exposure of sensitive information like API keys, and we’ve covered a few of them in these posts about environment variables.
But we’re curious: What are some mistakes you’ve made as a developer? What did you learn from those mistakes?
Share your wisdom in the comments below! 🙏👇

Top comments (4)
✋️Hi yes, it's me -- I have absolutely accidentally pushed secrets to GitHub. Fortunately, it was the secrets for a trial account so nothing really consequential happened, but yeeeah, I had to perform some extensive meticulous GitHub surgery to not only remove the secrets to rewrite history as well 😅
Now I am super careful about using
.gitignoreto keep any sort of secrets or files containing secrets out of public repos!!!Mistakes happen; they're a normal part of the job. The important thing is to point them out before they make someone's life difficult. And there have been plenty of those mistakes... 😶🌫️🤫
I once truncated the primary table that held all of the web content for our website CMS. We were able to recover it from backup but it was on a literal tape drive so it took a few hours. Face palm.
Oops! I'm glad you were able to recover it!!!
How has that mishap informed how you work today?