From the course: Node.js: Testing and Code Quality

Unlock the full course today

Join today to access over 24,800 courses taught by industry experts.

Creating and enforcing coding standards

Creating and enforcing coding standards

From the course: Node.js: Testing and Code Quality

Creating and enforcing coding standards

- [Instructor] Now that we know what a coding standard is, let's go through the steps for creating and enforcing one. The process for creating a coding standard is iterative, much like specifying software. First, determine what coding conventions are available that fit your project or organization. Out of what's available, decide what has the most positive impact on the quality of your code base and morale. Some rules help developers while others may annoy and may be needlessly strict. Experiment with what's out there to find what works and what doesn't. When you've made a choice, briefly document the justification of why you've chosen to use or not use a particular rule. Less is more, so try for a maximum of one sentence. Once the rules have been defined, create the configurations for any software you're using. We're going to be discussing how to do this later on in the course. Finally, revisit the rules on a regular…

Contents