Skip to content

Commit

Permalink
Add Style Guide (#1713)
Browse files Browse the repository at this point in the history
* Add Style Guide

* Update STYLE-GUIDE.md

Co-authored-by: Sascha Mann <[email protected]>

* Update STYLE-GUIDE.md

Co-authored-by: Sascha Mann <[email protected]>

* Update STYLE-GUIDE.md

Co-authored-by: Ryan Potts <[email protected]>

* Update STYLE-GUIDE.md

Co-authored-by: Sascha Mann <[email protected]>

* Update STYLE-GUIDE.md

* Update STYLE-GUIDE.md

Co-authored-by: Sascha Mann <[email protected]>
Co-authored-by: Colin Caine <[email protected]>
Co-authored-by: Ryan Potts <[email protected]>
  • Loading branch information
4 people authored Oct 15, 2020
1 parent 426b93d commit c0b711f
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions STYLE-GUIDE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# Exercism's Style Guide

This document acts as a Style Guide for the language and wording used in exercises.

## General principle

All content should be written in US English.
All units of measurement must be [SI](https://en.wikipedia.org/wiki/International_System_of_Units) or [SI-derived](https://en.wikipedia.org/wiki/SI_derived_unit) units.
In the future other translations may occur, but the "official" Exercism language is US English.

## Explain or substitute mathematical and esoteric terms.

In any place that mathematical terms are used they should be explained or substituted out for terms that require less domain knowledge.

Examples:
- Rather than using "natural numbers", we should use "positive whole numbers".
- If we want to use the phrase "rational numbers", it must be explained in the introduction to the exercise.
- Rather than using the word range (which can have different meanings in different contexts) use "x < ? < y (greater than x and less than y)".

## Use consistency within an exercise.

There are some terms that have multiple valid spellings (e.g. "lower case" vs "lowercase").
Where a consistent style has not been agreed within this document, these must be consistent within an exercise.

0 comments on commit c0b711f

Please sign in to comment.