When Guidelines Should Be Descriptive or Prescriptive

Published on September 13, 2008 (↻ October 20, 2024), filed under (RSS feed for all categories).

This and many other posts are also available as a pretty, well-behaved ebook: On Web Development. And if you’re only interested in a robust overview on coding guidelines, check out my little book on it: The Little Book of HTML/CSS Coding Guidelines (updated).

Every time I’m putting up guidelines or conventions one of the decisions I need to make is whether the guidelines, or which parts of them, should be descriptive (positive) or prescriptive (normative). For coding guidelines this could mean the difference between, say, “the markup should be valid” and “the markup must be valid” (think RFC 2119).

The question is when to recommend or describe something to be followed, and when to force and prescribe. In my mind this decision depends on three factors:

  1. The goal. Is there a need to sensitize and establish a particular mindset and process first, and is there sufficient time as well, or is it desirable to quickly enforce certain rules, even when the results are already solid? Establishing a mindset suggests to go for recommendations first, whereas enforcing something means to come up with clear requirements.

  2. The situation. Is everybody doing well, or is the situation rather bad? If it’s going well, then an approach based on strict rules might be best in order to create support for everything that’s already been achieved, and the guidelines may only mean a written testament of formerly unwritten laws. If the situation is bad, then descriptive guidelines and recommendations may work best to gently push into the desired direction.

  3. The priority. Low priority issues don’t need to be treated with strict rules right from the bat; they allow for some flexibility. Only critical issues may get all the attention. (For example, coding guidelines that require lowercase letters for hex color values but leave it open to use valid CSS exhibit an “interesting” sense for what’s important.)

Let’s take the valid markup example from the introduction to make decisions for the coding guidelines of a few imaginary companies:

  1. Company 1, the goal: Have valid output be the prerequisite to develop and improve the company’s websites. Changing the guideline? “The markup must be valid.”

  2. Company 2, the situation: suboptimal. Nobody validates, valid code is a coincidence. How to handle a guideline about valid markup? Take the gentle approach: “The markup should be valid.”

  3. Company 3, the priority: Low, after observing that the company uses elements according to their purpose, and that there are few accessibility issues. Changing the guideline? That then depends on the value of the goal, the philosophy, and quality ambitions; if it was me, I’d go for “the markup must be valid.”

As we can see, the “descriptive vs. prescriptive” problem is not just one for linguists talking grammar. It’s of relevance for our industry, too. I may have missed opportunities to make better points, but I hope that the main one came across, namely that “descriptive vs. prescriptive” is something we need to keep in mind.

This is likely to be the last post I publish during my stay in the U.S.—I’ve been taking a few days off—but the next one should be out in one and a half weeks. Consider taking a very short survey if you didn’t already (thanks to all who have already casted their vote!), and enjoying some of the posts from the past!

Was this useful or interesting? Share (toot) this post, become a one-time nano-sponsor, or support my work by learning with my ebooks.

About Me

Jens Oliver Meiert, on November 9, 2024.

I’m Jens (long: Jens Oliver Meiert), and I’m a frontend engineering leader and tech author/publisher. I’ve worked as a technical lead for companies like Google and as an engineering manager for companies like Miro, I’m a contributor to several web standards, and I write and review books for O’Reilly and Frontend Dogma.

I love trying things, not only in web development (and engineering management), but also in other areas like philosophy. Here on meiert.com I share some of my experiences and views. (Please be critical, interpret charitably, and give feedback.)

Comments (Closed)

  1. On September 15, 2008, 8:59 CEST, lup4lz said:

    Comparing development guidelines with the descriptive/prescriptive grammar debate is dangerous.

    Prescriptive grammar is always been a losing battle: languages change regardless of grammar rules while descriptive grammar is the science of observing the way people use language.

    Any guidelines concerning a web development are instead there for specific reasons. They may help control the costs of current or future development of the site, the interoperability of software and portability of data as well the possible changes in the environment where the website or application needs to operate.

    It’s easy to enforce loose guidelines in a small team but in a more complex project they should be formalized together with the reason why they exist. This way a developer can make an informed decision on when the guidelines should or should not be followed. This way you could take a guideline as a rule that can be bent as long as you know why you are doing it and are aware of the implications of the decision.