Improve code quality using Visual Studio Code Metrics
As the coding is important, we should also think of better coding...
We need to think while writing a piece of code;
- Is the code scalable
- Is the code robust -> What happens if I do....
- Is the code maintainable. What if I leave the company, somebody should understand and do..
- Is the code secure enough
- Is the piece of code reusable
- Is the UI satisfies user experience
- Is the code handles exception and logs with proper useful and meaningful messages
To tell there are lot of points and very easy to tell. To be frank I am not able to follow all these every time. But to achieve we need to be extra careful and extra cautious.
Initial time to start with, we can use some code improvement tools which are freeware.
Ex: FxCop, StyleCop etc...
These are tools from Microsoft that checks and analyze the code and styling of the code and allow it to enforce a different set of rules. We can also customize the rules as per our own standards also ignore unwanted rules.
Conclusion
In my personal opinion very few people make use of these matrices to improve their code quality. Many of the senior developers I come across are not aware of these at all or simply ignore them even when their favourite IDE supports it.
There are various tools available to measure the above mentioned softwares also.
Until next time Happy programming :)
Comments