DEV Community

Cover image for My Code Works… I Have No Idea Why 🤷‍♂️

My Code Works… I Have No Idea Why 🤷‍♂️

Robin 🎭 on February 20, 2025

The Three Stages of Debugging Debugging isn’t just a skill—it’s an emotional rollercoaster. Let’s break it down: Stage 1: ...
Collapse
 
divya4879 profile image
Divya

Yup

We're like

My code works, I have no idea why 😅
It doesn't work, don't know why 🤔🤨

Collapse
 
robin-ivi profile image
Robin 🎭

Haha, exactly! 😂
I’m not a pro coder like you...

Collapse
 
divya4879 profile image
Divya

I'm not some pro coder.

Just a simple person 😅

Thread Thread
 
robin-ivi profile image
Robin 🎭

Haha, same here! Just enjoying the journey. Keep coding! 😄💻

Collapse
 
kelvincode1234 profile image
Precious Kelvin Nwaogu • Edited

Semi-colon and Block letters 😂

Collapse
 
robin-ivi profile image
Robin 🎭

The semicolon is like a ninja—silent but deadly when missing. 😂

Collapse
 
kelvincode1234 profile image
Precious Kelvin Nwaogu

Lolz... Sure, bro. They are really important, even when you think they’re not.

Collapse
 
knight03 profile image
Dhvani

Just yesterday i got to know my backend app has shutdown for a whole day i didn't knew but glad i have log files. Relatable

Collapse
 
robin-ivi profile image
Robin 🎭

Totally relatable! Logs are lifesavers in situations like this. At least you’ve got a trail to track what went wrong! 🚀

Collapse
 
konfydev profile image
Sriram

that's how it always starts. That's how it started for me. Without knowing what the stack overflow says and couldn't make sense of it. But once you went on the path to figure out what is what , you will know them all one day. One day, you will feel satisfied and want to share to the world about your discovery.

Collapse
 
zethix profile image
Andrey Rusev

I think once I had a typo in the name of a variable used... as it happens... there was another variable defined by that same (and wrong) name... So, the code was perfectly compilable... It just didn't work :)

P.S. I like how I said there was another variable... - like it was added by somebody else, not me ;) But anyway, it sort of proves that it's alright-ish to make the same mistake an even number of times :)

Collapse
 
pengeszikra profile image
Peter Vivo

Common Developer Rituals goes to Monday Mems!