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