DEV Community

Zahid Hasan
Zahid Hasan

Posted on

What are the good ways to avoid bugs?

I have been working as a web developer almost 3 years. Now a days build ui and functionality with react redux. But I am facing a problem that is I am finding bugs with others code but some bugs are avoided by my eyes. Its happening all the times now a days. And its really ashamed for me to raise this kind of issues severally. What are the best ways to resolve this? Hope some professional seniors will see this post and give me an advice.

Top comments (4)

Collapse
 
wannabehexagon profile image
ItsThatHexagonGuy

Why are you ashamed to raise issues? As a team member don't you think that's your job? Would you rather have a user complain to you about these issues?

Without proper context, it's difficult to give you any solid advice but you can perform code reviews, perform code audits and discuss the findings with your team, mentor developers that are struggling and write automated tests, to test key/critical functionality.

Collapse
 
zahidhasan24 profile image
Zahid Hasan

Thanks @Mydrax about your valuable comments.

Collapse
 
cadams profile image
Chad Adams • Edited

Honestly it’s pretty easy. If you’re looking to find bugs in other peoples code you gotta think like a hacker. How can you break their code? If you’re struggling with that, that means you don’t understand how something works. A good developer knows what they don’t understand. Regardless of how minor the bug is bring it up, especially in a PR because that’s one good way to improve as a developer.

Collapse
 
zahidhasan24 profile image
Zahid Hasan

Thanks @chad Alen. I will keep in my mind your precious advice.