DEV Community

Cover image for Calling all self taught devs - how do you check the quality of your code?
Fraser McTaggart
Fraser McTaggart

Posted on

Calling all self taught devs - how do you check the quality of your code?

How do you check the quality of your code? Have you joined forces with others to code review each other?

I'm curious as to how others approach the subject!

Top comments (6)

Collapse
 
jasongabler profile image
Jason Gabler

Code reviews, knowing the principals of good practices and being aware of how easy or difficult it is to augment, refactor or otherwise modify the code later on, especially for other developers working with code you've written.

I believe it is that last item which provides the strongest metric.

Collapse
 
unfor19 profile image
Meir Gabay

I mainly go for - learn from good projects.
Every time that I need to develop something new, I search for an existing and well maintained project.

Some concrete examples -
If I need to develop a Python app, which follows the object oriented pattern - I look at the Django project before I start.
For creating a Python package I'd look in numpy or pandas projects.
And for a Python CLI, the aws-cli is a great example.
(I chose Python, but it's relevant to any project/language)

And of course, peer reviews are the best choice, but you need to know how to tempt someone to check your code. The way I do it - share only short meaningful snippets that require special attention, and include comments wherever it makes sense.

Collapse
 
manishfoodtechs profile image
manish srivastava

Let GitHub to scan your code:
dev.to/manishfoodtechs/github-code...

Some free advise:
dev.to/manishfoodtechs/10-layman-s...

Collapse
 
fmctaggart profile image
Fraser McTaggart

I never realised that was a think! I've added a project to the queue to see what it picks up. Great articles btw.

Collapse
 
manishfoodtechs profile image
manish srivastava

Please let me know how was github scan.

Collapse
 
codefinity profile image
Manav Misra

Well, just πŸ‘πŸ½ about any software ✍️ unit tests. For JS, πŸ€” with Jest and then, πŸ€” E2E with Cypress.
Short of that proper linting in place, especially with AirBnB goes a long way...or just having friends and family try stuff out! 😊