DEV Community

Yogini Bende
Yogini Bende

Posted on

3 1

How you do code reviews for your side project?

Recently, I have been doing some mini projects to learn new things or practice skills. But how can I get to know I am following best practices? How to improve the quality of code and implement better logic?

What are your thoughts on this? How you improve your code and how you do code reviews for your side projects?

Top comments (6)

Collapse
 
mikenikles profile image
Mike β€’

Hi Yogini, depending on the programming language you use, there are tools to help. For example, ESLint for Javascript projects.

Another suggestion I have is to create pull requests for your side projects. Once created, review your own code and pretend to explain what's going on to a coworker. Sometimes, simply reading our own code helps identify areas we can improve.

Lastly, I suggest you follow people online who share their experience. Blogs, videos, live streaming but also read books such as The Pragmatic Programmer or Clean Code.

Collapse
 
victorioberra profile image
Victorio Berra β€’

review your own code and pretend to explain what's going on to a coworker. Sometimes, simply reading our own code helps identify areas we can improve.

There is an actual term for this called rubber duck debugging and it's a great practice.

Collapse
 
hey_yogini profile image
Yogini Bende β€’

Thanks for sharing this! Rubber Duck Debugging is a new term I came to know today.

Collapse
 
saurabhlprocks profile image

If you code in front-end, one way to make sure to write a quality code is to have linting rules.

Below is the project where I've added linting rules for TypeScript, SCSS & and GIT commit messages:
github.com/SaurabhLpRocks/vscode-w...

The same project is explained in my medium blog:
β€œVS Code Workflow for Dockerize Asp.Net Core & Angular App” by Saurabh Palatkar link.medium.com/cnSZujPyU3

Collapse
 
hey_yogini profile image
Yogini Bende β€’

Great work with done with minor details! Glad you shared it with us Saurabh. Linting is always a good option, but I am talking more about improvement in logic and code structure.

Collapse
 
victorioberra profile image
Victorio Berra β€’

Sharing the code with sites like Reddit and discord channels is a great way to get feedback.

Cloudinary image

Optimize, customize, deliver, manage and analyze your images.

Remove background in all your web images at the same time, use outpainting to expand images with matching content, remove objects via open-set object detection and fill, recolor, crop, resize... Discover these and hundreds more ways to manage your web images and videos on a scale.

Learn more

πŸ‘‹ Kindness is contagious

Please leave a ❀️ or a friendly comment on this post if you found it helpful!

Okay