-
-
Notifications
You must be signed in to change notification settings - Fork 554
Add Style Guide #1713
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add Style Guide #1713
Changes from 3 commits
6bf2174
fd860b3
5e95607
9d6034e
2bb8c22
ce63702
b90aab0
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
# 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. | ||
iHiD marked this conversation as resolved.
Show resolved
Hide resolved
|
||
In the future other translations may occur, but the "official" Exercism language is US English. | ||
|
||
## Explain or substitude mathematical and esotoric terms. | ||
cmcaine marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
||
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 integers" or "zero and positive integers". | ||
iHiD marked this conversation as resolved.
Show resolved
Hide resolved
|
||
- If we want to use the phrase "rational numbers", it must be explained in the introduction to the exercise. | ||
iHiD marked this conversation as resolved.
Show resolved
Hide resolved
|
||
- Rather than using the word range (which can have different meanings in different contexts) use "greater than x and less than y". | ||
iHiD marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
||
## Use consistency within an exercise. | ||
|
||
There are some terms that have multiple valid spellings (e.g. "lower case" vs "lowercase"). | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Perhaps this could be the first example of an agreed spelling? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Sure. But I also want a rule that explains what happens when multiple valid spellings are used without a documented decision in this guide (ie, they should be exercise-consistent) There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. lowercase seems to be more popular: https://english.stackexchange.com/questions/59409/lowercase-lower-case-or-lower-case There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Good enough for me 👍 There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. More popular != correct 😜 There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I'd agree with lowercase, but I think this falls into the "it doesn't matter as long as its consistent within an exercise" bucket. Unless anyone feels strongly about this particular word, and wants to encode |
||
Where a consistent style has not been agreed within this document, these must be consistent within an exercise. |
Uh oh!
There was an error while loading. Please reload this page.