Do you mess up while editing a code that already works and end up with a not working code? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 9

Do you mess up while editing a code that already works and end up with a not working code?

I made a program called ' Python a friend ' which was working fine (I even got 33 likes on it) and then one day I thought of removing a bug( which was as small as a mosquito) and making some other changes as well I started making changes and tried to remove the bug but guess what... now the whole code has become a bug (as big as a crocodile)😭😭😭 Does this ever happens to you?

14th May 2017, 10:41 AM
Code Ninja
Code Ninja - avatar
5 Answers
+ 4
This is a very common occurrence. Any change to an existing program runs this risk, but don't despair! While it can be disheartening, it's an amazing opportunity to learn. Just give yourself permission to fail, and try to upgrade a separate copy of your work. (this is why the make version control systems). I know it hurts to have your work suddenly become broken, but I promise that when you sort it all out, you'll be an even better coder, and you'll have a better program! So, who am I to say this? Someone who had spent a decade plus fixing the programs that others wrote. Think fixing what you wrote is tough? ;-)
15th May 2017, 3:49 AM
Jim
Jim - avatar
+ 11
Yeah, I was working on making a new update, then screwed up, I removed it, then I accidentally removed the old parts, again screwed up, I tried to fixed it, and then again, it screwed up, give up, sleep. :'(
14th May 2017, 10:45 AM
Complex
Complex - avatar
+ 5
@COMPL3X believe me I know what it feels like. it happens to me all the time 😅😅
14th May 2017, 11:52 AM
Code Ninja
Code Ninja - avatar
+ 5
Yes, that happens with me most of the time.
14th May 2017, 12:47 PM
Kinshuk Vasisht
Kinshuk Vasisht - avatar
+ 4
Happens to the best of us; it's good experience though.
14th May 2017, 3:27 PM
Kirk Schafer
Kirk Schafer - avatar