You don’t need another peace of advice, telling you to “just stay focused” or “remember to drink water.” This isn’t that. Let me show you what I sometimes do when nobody is in the room😅.

Because coding is messy creativity. Your brain betrays you. Debugging feels like a crime scene investigation where you are both the detective and the murderer.

So here’s a bunch of weird tricks that actually work.

They’re stupid — maybe cringe. But they’re human.

They’ve saved me, my friends, and probably a few tech millionaires who’ll never admit it.

32 Tips

  1. Go to the toilet when stuck. No, really. Half of Stack Overflow answers were born on the toilet. Einstein swore by showers, coders upgraded to toilets.
  2. Rename your variables like they’re your enemies. If you can’t find the bug, rename x to stupid Gremlin. The bug will show itself out of shame. Trust me.
  3. Explain the code to your cat. Or a rubber duck. Or your microwave. Doesn’t matter. Out loud is the key. Suddenly your logic holes scream at you.
  4. Write commit messages like drunk texts. “fixed the dumb loop again” is more honest than “Refactored iteration process.” Future you will thank past you for being real.
  5. Change your font. When your brain hates your code, make it look different. Comic Sans in your IDE. Just for 5 minutes. Debugging suddenly feels like a prank.
  6. Google the error without reading the results. Just typing it often triggers the “aha” moment before you even hit enter.
  7. Stand up dramatically before hitting run. Like you’re about to perform. Half the time, the bug disappears in fear.
  8. Turn off syntax highlighting. Black and white code looks terrifying. But you actually read it. And you’ll notice things colors were hiding.
  9. Pretend you’re teaching a 5-year-old. If you can’t explain why your function works, it doesn’t.
  10. Use your phone recorder. Talk through the bug. Then listen to yourself later. You’ll either hear the solution or feel like an insane person. Both help.
  11. Switch to a standing desk made of ironing boards. Improvised desks trick your brain into new focus. Don’t ask why, just try it.
  12. Open the file in Notepad. It’s like seeing your code naked. No colors, no auto-complete, no training wheels. Brutal but clarifying.
  13. Delete one random line. If everything explodes, congrats, that was the important one. If nothing changes, delete guilt-free.
  14. Explain your bug in a text to someone who doesn’t code. If they respond “lol idk,” you probably already see the fix.
  15. Switch keyboard layouts. QWERTY to Dvorak for 30 minutes. Makes you type slower. Forces you to think instead of mash.
  16. Recompile while making coffee. The bug fears caffeine and leaves out of respect.
  17. Stare at the wall. Blank staring is underrated. Your brain keeps working even if you look dead inside.
  18. Write pseudocode in MS Paint. Stick figures included. Visual stupidity makes complex logic simple.
  19. Force yourself to write the bug in plain English. “This loop runs one more time than it should.” Boom. Fixed.
  20. Copy-paste your code into ChatGPT and pretend it’s your boss. Suddenly you care about formatting. And clarity.
  21. Open your code on your phone. Shrinking it makes it weirdly easier to see mistakes.
  22. Sleep with a notebook by your bed. 3am brain loves spitting out “oh it’s the index, idiot.”
  23. Swap coding languages for one problem. Rewrite in Python if you’re stuck in Java. Even if you throw it away, the fresh angle works.
  24. Ask yourself: What would Linus Torvalds say? Probably: “This is garbage.” Accept it. Clean it up.
  25. Write angry notes to your future self. “WHY THE HELL DID YOU NEST THREE MAPS???” Future you will either laugh or fix it.
  26. Type your bug into Twitter. The character limit forces clarity.
  27. Sit in a weird position. Floor. Bathtub. Closet. A new posture makes you rethink the code.
  28. Introduce bugs on purpose. It helps you see how your system breaks, then spot where the real bug hides.
  29. Say “okay brain, we’ll do it your way.” Sometimes surrender works better than brute force.
  30. Talk smack to your compiler. “Oh you think you’re smart?” Then run it. It loves proving you wrong.
  31. Pretend your code is a cooking recipe. If the function says “boil eggs,” but it’s actually “burn eggs,” you’ll notice fast.
  32. Quit. Walk away. Touch grass. 80% of bugs fix themselves the moment you stop caring.

TL;DR

Coding is weird. Your brain solves problems in toilets, showers, and while yelling at your cat.

When stuck, change perspective. Rename variables to insults, switch fonts, delete random lines, talk out loud.

It’s not magic. It’s just tricking your brain into seeing what’s obvious.

Happy coding 😅

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *

Read my latest blog articles

  • How to Create a Drag-and-Drop Interface with Vanilla JavaScript

    How to Create a Drag-and-Drop Interface with Vanilla JavaScript

    Drag-and-drop interfaces make web applications interactive, intuitive, and user-friendly. From task boards like Trello to custom file uploaders, drag-and-drop is one of the most requested features in web development. In this tutorial, I’ll guide you through creating a complete drag-and-drop interface with vanilla JavaScript, without using any frameworks. You’ll learn how to: By the end,…

  • 5 Setups for Building Your First Full‑Stack Web App

    5 Setups for Building Your First Full‑Stack Web App

    As I created my first full-stack app ever, I was overwhelmed by the possibilities and pitfalls. I wish I had a guide telling me which framework and what backend to choose in which situation. That this doesn’t happen to you, I put together 5 tested and solid setups for you to start building your first…