DEV Community πŸ‘©β€πŸ’»πŸ‘¨β€πŸ’»

DEV Community πŸ‘©β€πŸ’»πŸ‘¨β€πŸ’» is a community of 963,274 amazing developers

We're a place where coders share, stay up-to-date and grow their careers.

Create account Log in
KAIDI
KAIDI

Posted on

Clean code or not clean code that's the question

Hello,
code quality is a really important subject in software development, if we really like to deliver a real tested product with fewer bugs (or no bugs) we should respect the majority of coding rules and standards.
I use eslint and prettier in vscode and some other extensions for code formatting.
Lately, I've started using SonarQube for checking code in CI/CD and it's a really powerful engine, it analyses the code and it detects bugs, untested code, security vulnerabilities, and more.
after resolving all the points, another devlopper will check the merge request to check the unseen or forgotten issues.

what do you think and what do you use in your daily life?

Top comments (4)

Collapse
 
sargalias profile image
Spyros Argalias

I like all the tools you listed. I like to use everything possible to help with clean code.

In addition to the tools you listed, I like to use Git hooks. These run the whole build (if it's feasible) and run tests and such. You can make them run before every commit, or just before pushing, or at other times.

Not sure if it's relevant to "code quality", but I also like to use Storybook. It's a fairly good development environment and "component catalogue" or living style guide for components.

Collapse
 
kamo profile image
KAIDI Author

thanks for your reply,
I use gitlab hooks in merge requests, checking that there is a MR description and labels all the staff.
storybook is the future it's a must use.

Collapse
 
mikem1 profile image
Mike

Whatever has the best plugins, VS code and Notepad++ are work horses simply because a quick Google search will most likely solve your beautification problems and syntax errors

Collapse
 
kamo profile image
KAIDI Author

agree, google is your "Fri-end", but a nice configuration will save you much time in searching :)

Classic DEV Post from 2020:

js visualized

πŸš€βš™οΈ JavaScript Visualized: the JavaScript Engine

As JavaScript devs, we usually don't have to deal with compilers ourselves. However, it's definitely good to know the basics of the JavaScript engine and see how it handles our human-friendly JS code, and turns it into something machines understand! πŸ₯³

Happy coding!