G
22

Heard a guy say "code doesn't lie" and it finally clicked for me

I was watching a tutorial on Python loops and the instructor said that phrase. For weeks I kept blaming the language or my computer when stuff broke. Turned out every time I had a bug it was my own logic, not some mystery gremlin. Last night I found a typo in a variable name after 20 minutes of staring at it. Has anyone else had that moment where you realize the error is always user error?
2 comments

Log in to join the discussion

Log In
2 Comments
ben827
ben8273d ago
My buddy Dave spent like 3 hours debugging a React app once. He kept saying the state wasnt updating right and swore it was a framework bug. Finally he realized he was passing the wrong variable name into setState. He had like 10 console.logs everywhere before he spotted the typo. The code really does just show exactly what you told it to do, even if you thought you told it something else. Now he triple checks variable names before blaming anything.
5
dakotab13
dakotab132d ago
@ben827 that's me with every typo I swear lmao.
2