SBN

Five Ways to Improve Your Code Quality

With over 37 billion open source components combined in the most popular open source ecosystems, keeping your code in top shape can feel like trying to blow out trick birthday candles. Luckily, the newest code quality course from the Sonatype Learn Team, 5 Ways to Improve Your Code Quality, outlines a few essential ways to maintain outstanding code quality.

We’re rounding up the biggest takeaways from this interactive and comprehensive course. After reading this, you’ll be able to understand what makes quality code and how to achieve new code quality heights that will help you spend less time fixing broken code and more time breaking development boundaries.


Article contents


How to define code quality

Quality code does what it’s intended to do. Excellent code quality follows a consistent style, is easy to understand, is well documented, and can be tested. As noted in the course, there are five pillars that support the software development life cycle (SDLC): Readability, Performance, Maintainability, Reliability/Resiliency, and Security. By focusing on the development of each pillar, you can increase the entire quality and health of your software supply chain.

These pillars are all non-functional requirements of the code, meaning the attributes of a software system and the ability they have to perform. Think of non-functional requirements as the “how” rather than the “what.” For example you know a birthday cake will come frosted, but how? Non-functional requirements of that cake could include rose tip piped chocolate frosting from the bottom up, or vanilla buttercream frosting smoothed (Read more...)

*** This is a Security Bloggers Network syndicated blog from Sonatype Blog authored by Keiana King. Read the original post at: https://blog.sonatype.com/five-ways-to-improve-your-code-quality