Photo by Elisa Ventur on Unsplash
I think that all newcomers need to hear that all developers make mistakes. They should not worry about this, but if possible fix their mistakes and learn from them.
I'll start with my last mistake done today. I'm Web Developer working with JavaScript. I've created a PR with small change that was reviewed and in one of the comment fellow developer added a comment about one function. I've planed to use that function in two places, but decided to delete that other place, after CR I've added that code back but with a bug that throw error when deploy to our dev environment.
The code looked like this:
import { scoreValue } from '../../../../utils/scoreValue'
when I first added this code, before I deleted the code, got error that scoreValue
was already defined so I've changed the code to:
import { scoreValue as calculateScoreValue } from '../../../../utils/scoreValue'
and it was working. The problem was that after CR when I added that change back I forget that renaming of the variable and it thrown an error when building the project.
Our PM (Project Manager) that trigger deploy (yes I know this should be CI/CD) written on our group chat that the build was failing. I quickly fix the issue and this time he did the CR (because my colleague was not available at this moment) and the fix was done.
Luckily I don't have any issues with production environment, and this was just minor problem that was fixed quickly. But it was my mistake that I did. This should not happen I should check local build. We have live reload in the project and the error was in the console.
What was your last mistake you did at your work? Share in the comment below. It may help fellow developers to understand that everybody make mistakes.
Top comments (5)
People like it, but no one comment. I guess that everyone is perfect and don't do mistakes.
Everyone do mistakes every once in a while. ;)
Bu I'm wondering why no one added a comment with their mistake. And there are some visitors and some reactions.
My attempt was to start a disscussion.
idk, but it is a good discussion.
For me, I took a gap/break from programming ( I had some stuff going on), and now I am struggling to make it my routine like before. Any tips?
Create a some project that you'll be passion about. Something that you need and will use often.
You can also find a job as a developer you will code everyday.