DEV Community

Cover image for 🐞 Find your own Golden bug!
Vic Shóstak
Vic Shóstak

Posted on • Updated on


🐞 Find your own Golden bug!


Hey, people! 😉 I came back with an interesting DX (Developer Experience) thought, that I recently realized. Let's talk about bugs on your code and why they're useful, if you want to grow up quickly.

📝 Table of contents

What is Golden bug? 🤔

Gold bug is the sum of your three states:

  1. You wrote code, but it doesn't work the way it should.
  2. You asked your friends for advice on how this code should work.
  3. One (or several) advice and/or code samples, gave you much more "solving the problem" and taught you something new (which you always missed or didn't know in the principle).

Exactly the same, when you show your code or dev/tech article to the Internet. Let me give you an example from my recent experience 👇

When I published my article about Go web app settings in YAML, one of my readers advised me to be more careful with the func init(), because code inside is very difficult to test.

I started looking at my previous projects and found a lot of examples, where this built-in Go feature really prevented 100% coverage of my code with tests.

As a result, I have revised development model for Go web apps and got a lot of experience. There he is the Golden bug! 🎉

☝️ Why it will help me?

When you really don't know how to find the right solution to your problem and you get more than just a "do this" instruction, your brain remembers this solution pattern much better.

You can only gain experience, when you learn more, than you already know.

How can I find him?

🔍 How can I find him?

The main rule is write a lot of code every day and don't be afraid to ask more experienced friends (or people on Internet) to give you a review of your code.

Listen to people and be grateful, even when they hint that your code is terrible and will not be enough to waste time on it. Just ask to explain to you that place (fragment of your code), which you don't understand.

Experience at the top of everything!

Photo by

[Title] Limor Zellermayer
[1] Rabie Madaci


If you want more articles like this on this blog, then post a comment below and subscribe to me. Thanks! 😘

And, of course, you can support me by donating at LiberaPay. Each donation will be used to write new articles and develop non-profit open-source projects for the community.

Support author at LiberaPay

Top comments (0)

Dark Mode

🌚 Friends don't let friends browse without dark mode.

Just kidding, it's a personal preference. But you can change your theme, font, etc. in your settings.