Hello Developers ð
Yes, We do silly mistakes, I don't know of all of you but with almost 2 years of experience in web development, I can say I make a lot of silly mistakes all the time ðĪŠ.
Mistakes I have done that make no sense!
I was working with nextjs and while writing API I forget to pass req and res parameter in the handler function and when I run my website it was showing internal server error 500, and I was going through my code, checking spellings, reading articles, and all the thing to debug but after 30 mins or more I found out req and res was missing from the parameters of the handler.
This is only one of many mistakes we(I) do all the time.
It's funny and annoying at the same time.
What do you think about why we do these silly mistakes.
In my defense, I say, "Our mind continuously processes much logic and sometimes forgets about the little details."
But hey, after all, we are humans we learn from mistakes.
and from now on whenever I get an internal error message first thing I do is (you guessed it right ) check the parameters.
and at last, I quote "Only a fool learns from his own mistakes. The wise man learns from the mistakes of others"
-Otto von Bismarck
I would love to listen to your mistakes in the comments
Thanks for reading.
EnjoyLearning.
HappyCoding.
Closing here ððð
This is Shareef.
GitHub
My Portfolio
Twitter ShareefBhai99
Cover photo by Jared Rice on Unsplash
Top comments (4)
It's the nature of things. That's why we have so many error correcting tools and so many practices to double check our work.
I make mistakes all the time. I try to avoid them by doing work in very small iterations. Either TDD or just developing very little and writing a
console.log
statement to see if things are as expected so far. Then create a temporary git commit in case I mess up in the next 3 minutes. Repeat.That way, I keep debugging to a minimum, compared to coding for 30 minutes and then having to debug all of my work.
yeah! small git commits are very helpful
...that's true for me too(unfourtunately)...
ð no worries you are not alone... #weAreTogetterInThis