So Yesterday, I got a client's email that he is interested in buying a product from my website. I got so hyped up (because he is my first customer of 2023) and decided to optimize & add some cool features to the website so, I would look cool and professional.
As usual, I opened my ChatGPT to add some features to my order page. I copied and pasted the code into my website. and, Wush! the work for today is complete. Lets' go to dinner.
But little did I know, There was some issue with the code which caused my entire website to go offline. I checked the code and realized, There was no Right curly bracket in the code. (Often ChatGPT answers break without completing the answers). In my case, it was that curly bracket at the end of the code.
So, yeah. I didn't have dinner yesterday and had stressed up 3-hour sleep because, I was trying to access the file manager but, I wasn't able to get it. But finally, Today morning I managed to access my file manager and added that curly bracket in my code. Huushhh...
I have to admit that, I had been kinda aggressive with my web development (i.e. didn't care about backing up my data before making such a change). but, I hope this experience changes my perspective in the future for the better.
Moral of the story: Sometimes very small problems can have tremendous consequences. So, never get distracted while working.
Also, No offense to ChatGPT. I really love the revolution and innovation the project is bringing in AI space and I will be using it in the future (just more cautiously)