DEV Community

Ben Halpern
Ben Halpern

Posted on

I finally fixed a bug that was nagging me for months and it was a one line change.

Programming is weird 🙃

Oldest comments (11)

Collapse
 
letsbsocial1 profile image
Maria Campbell • Edited

Yes it is! What was the bug?

Collapse
 
ben profile image
Ben Halpern

It was the bug where sometimes the inter-page navigation hangs. It's super annoying and I finally wrapped my head around why that is. I'm not 100% sure I fixed it but I feel pretty good about dealing with it in general.

Collapse
 
plutov profile image
Alex Pliutau

A bit out of this question, but I was fixing bug in one file, making changes there, used debugger, swearing a lot.

And then I looked into the path, it was the same filename, but path to it was different! So I was making changes in one file, but debugging/compiling another :(

Collapse
 
foresthoffman profile image
Forest Hoffman

Oh yeah, I did that once. Only once. Definitely hasn't happened tons of times. Nope. ;)

Collapse
 
ben profile image
Ben Halpern • Edited

Web developers might be familiar with the "reloading production app and wondering why my changes aren't taking place!" pattern.

Collapse
 
adnanrahic profile image
Adnan Rahić

I had the same nagging sensation with adding a cache to some APIs. In the end, it was as simple as adding 3 lines of code.

Collapse
 
washingtonsteven profile image
Steven Washington

Always strange when you go in to fix bug that you think is going to take you hours, but then 5 minutes later you're all git push and don't know what to do with yourself.

Collapse
 
ben profile image
Ben Halpern

Collapse
 
clickclickonsal profile image
Sal Hernandez

"Most coders think debugging software is about fixing a mistake, but that’s bull****. Debugging’s actually all about finding the bug, about understanding why the bug was there, to begin with, about knowing that its existence was no accident. It came to you to deliver a message, like an unconscious bubble floating to the surface, popping with a revelation you’ve secretly known all along." - Mr. Robot

Whenever I'm debugging pesky bugs like that I'm reminded of that quote. It's one of my favorite. 🙂

Collapse
 
temetnosce95 profile image
Jesús Alfredo Reyes Vargas

Holy! That's remembers me that I lost a robotics competition because I wrote a != instead == at a certain conditional expression on my robot's main module. I realize about my mistake 8 months later, when I was writing a research paper about some procedures used when building the robot.

Collapse
 
auct profile image
auct • Edited

i often find myself free to have fun the rest of time.
i mean when i think fixing or making some task will require whole day and in fact it required 5 min then i feel like work is done for today and do nothing in thd rest of the day. Not sure if it is good or not :D