Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions building/configlet/lint.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ The linter should check if all the required files are present. The non-exercise
- `docs/LEARNING.md`
- `docs/RESOURCES.md`
- `docs/SNIPPET.txt`
- `docs/SIGN_UP_SNIPPET.txt` (only for tracks whose `config.json` has `"active": true`)
- `docs/TESTS.md`
- `exercises/shared/.docs/help.md`
- `exercises/shared/.docs/tests.md`
Expand Down
29 changes: 29 additions & 0 deletions building/tracks/docs.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ docs
├── INSTALLATION.md (required)
├── LEARNING.md (required)
├── SNIPPET.txt (required)
├── SIGN_UP_SNIPPET.txt (required for active tracks)
├── REPRESENTER_NORMALIZATIONS.md (optional)
├── RESOURCES.md (required)
├── TESTS.md (required)
Expand Down Expand Up @@ -134,6 +135,34 @@ let hello = "Hello, World!"

Check [this page](https://exercism.org/tracks/fsharp) to see what this looks like when rendered (note: you must not have already joined the track).

## File: `SIGN_UP_SNIPPET.txt`

**Purpose:** Help people who are signing up to Exercism work out whether they are ready for it, or should learn the basics on [Jiki](https://jiki.io) first.

**Displayed on:** The sign-up page.
When someone says they can code a little, they pick the language they use most and see this snippet.
They then say whether the code feels easy, tricky or impossible.

Every track shows the same small program: a function that finds the most common word in a piece of text and says how many times it appears.
The snippet should be short (around 10 lines) and use variables, a loop, a conditional, a dictionary or map, function calls and string formatting, written the way the language normally does them.

This file is required for active tracks, and `configlet lint` checks for it.
Only the `maintainers-admin` team can change it.

### Example

```ruby
def most_common_word(text)
counts = Hash.new(0)
best = ""
text.downcase.split(" ").each do |word|
counts[word] += 1
best = word if counts[word] > counts[best]
end
"\"#{best}\" appears #{counts[best]} times"
end
```

## File: `REPRESENTER_NORMALIZATIONS.md`

**Purpose:** List the normalizations the representer applies to a solution.
Expand Down
Loading