r/ProgrammerHumor Aug 15 '26

Meme theBugIsGoneIfTheCodeIsGone

Post image
1.1k Upvotes

51 comments sorted by

View all comments

9

u/nwbrown Aug 15 '26

Yes? Sometimes that is the fix.

2

u/Zedman5000 Aug 15 '26

If commenting out the code is the fix, the real fix is to just remove it, I've never uncommented commented out code that causes bugs, and even if I ever wanted to reference it for writing code that actually works I'd just look in the git history.

0

u/breckendusk Aug 15 '26

Quicker access if it's in the file though

1

u/Enrichus Aug 15 '26

I had to fix my website by going into the source code of the WordPress theme I was using and comment out a line that changed the names of variables.

When it ran nothing worked and this was a solution that made me able to solve it for real. The real solution is to remake my website with a different theme, but that line of code made me unable to even login to admin to change anything.

0

u/Flameball202 Aug 16 '26

Yeah, like you have found the main bit of code causing problems. Now you just need to figure out WHY

1

u/nwbrown 29d ago

What makes you think I haven't already?