I'm looking for tips on how to effectively review my own code. As a solo developer at an intern level, I often find myself unsure if I'm writing quality code. I usually don't have anyone to review my work, and sometimes I rely on AI, but it doesn't replace actual feedback. How can I ensure that my coding is organized and up to par?
2 Answers
The best way to review your code is to give it to someone else. This helps avoid any biases you might have as the author. If you’re looking to review your own work, make sure you finish a feature, then take a break before coming back to it with fresh eyes. Read it as though you didn't write it! If you find yourself stuck trying to understand a part, that’s usually your sign to refactor. Focus on clear naming, single responsibilities for functions, and removing unnecessary code. Also, consider sharing small projects publicly; even a lack of comments can motivate you to clean up your code. Using AI is fine, just ensure you fully understand what it’s doing before you trust it. Remember, this is a learning process!
When you're working solo, ask yourself: If I had to troubleshoot an issue at 3am, could I read my code and understand it enough to fix it? This mindset can help you gauge clarity in your work. Try to make your code intuitive enough so you can come back to it later and not feel lost. This is especially important if it’s something that will eventually go live!
Is that advice directed at me?

I appreciate it manhh!! You are a saver for me : ) Thanks