Click here to Skip to main content
12,695,404 members (29,313 online)
Click here to Skip to main content
Add your own
alternative version

Tagged as


1 bookmarked

Setting the Standard and Practice Makes Perfect

, 24 Aug 2014 CPOL
Rate this:
Please Sign up or sign in to vote.
Setting the standard and practice makes perfect

I'm back again with another update, and honestly, this is a pretty timely topic for me. We've all heard the term Coding Standards, and at many firms I've dealt with, they tend to be just some document sitting in a directory on the intranet collecting virtual dust. But I want to discuss this particular idea and how this is a commonly underutilized tool for many senior developers, and something that is not being given enough weight by junior developers.

By definition, Coding Standards and Practices are a set of rules, and guidelines for developing code. They are a formal document defining what programmers are allowed to do, and what they aren't allowed to do when writing their applications. These standards should be enforced using tools like formal code reviews. Honestly, when you say it out loud, this sounds absolutely essential, but in practice I find that these kinds of documents tend to fall by the wayside. The benefits of coding standards should be fairly obvious, and I'm not going to list them here. What I'm going to discuss is how to keep them current and make them work for you as a Senior Developer.

Step #1 - Make Sure They Stay Current

The biggest reason I've found historically that these kinds of documents aren't used is because the last time they were updated was roughly 5 years ago, which in this industry might as well be a lifetime. So what can you do? If you're like most developers, you hear keep these documents current and think...oh god no, not paperwork. Programmers have an aversion to paperwork like vampires do to sunlight. The secret to this is pretty simple. Keep the document light. First and foremost, no one wants to keep a 50+ page document updated, and worse yet no junior developer wants to read it. So do both sides a favor, and keep them simple and short. Keep everything to the point! Focus on the absolute most important standards only.

Step #2 - Ditch the Master Document

Another way to help with #1, and keep your jr developers attention is to not keep one master document. This is a huge waste of effort, it makes for having that long document, and your trying to create a one size fits all standard, which is never going to work. Instead, I propose that you create documents either by domain (web, mobile, service, database), or by technology (MVC, JS, Knockout.js, Angular.js, etc.). This will make the updating process easier, and it allows developers to pick which standards to use on their projects, and they are not overloaded. Also, given that your standards are more targeted, the more likely they will be followed, and the better the quality of the standards.

Step #3 - Regularly Meet With Other Senior Developers to Discuss the Standards

Set up a regular meetings with other senior developers to discuss and deliberate about the standards, identifying standards that need to be updated, and standards that need to be retired. This will allow for a constant updating of this document and minimize the amount of time spent by everyone on updating. At the end of the meeting, each separate senior developer should have to update some of the standards documents.

Step #4 - Bring a Copy of Relevant Standards to Code Reviews

If you bring them, then you will be more likely to use them. The fact that the document is in front of you, will make you think about it more, and enforce it more. The more you enforce it, the better the habits of your junior developers will become.

There will likely be more on this topic soon, but I wanted to post these thoughts right away. Please feel free to discuss as I would love to start a dialog about this.


This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


About the Author

Kevin Mack
Software Developer (Senior)
United States United States
My name is Kevin Mack, I'm a software developer in the Harrisburg Area. I have been a software developer since 2005, and in that time have worked on a large variety of projects. Everything from small applications, to mobile and Enterprise solutions. I love technology and enjoy my work and am always looking to learn something new. In my spare time I love spending time with my family, and learning new ways to leverage technology to make people's lives better. If you ask me what I do, I'll probably tell you I can paid to solve problems all-day-every-day.

Check out my blog at and

You may also be interested in...


Comments and Discussions

-- There are no messages in this forum --
| Advertise | Privacy | Terms of Use | Mobile
Web02 | 2.8.170118.1 | Last Updated 25 Aug 2014
Article Copyright 2014 by Kevin Mack
Everything else Copyright © CodeProject, 1999-2017
Layout: fixed | fluid