Robot Name: clarify what "unique" means

Open
#1,937 1 comment 1 reaction 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
35/100
Issue type
Documentation
Clarity
Needs clarification
Activity status
Stale
Domain
documentation

Research direction

Read exercises/robot-name/description.md and the issue discussion first, then confirm which interpretation of name uniqueness the specification intends. Done means the description states unambiguously whether names may be reused after a robot is reset or discarded.

Written by the indexing model from the issue text.

Description

The specification for the Robot Names exercise says the solution "must ensure that every existing robot has a unique name" (confusing words emphasized).

The use of "existing" together with "unique" makes "unique" unclear. This could mean either:

  1. "ensure that the name of every existing robot is different from the name of every other existing robot."
  2. or: "ensure that the name of every existing robot is unique among all robot names ever used."

Meeting specification 2 will necessarily meet specification 1, but the opposite isn't true. Since one can imagine a situation in which it would be okay to reuse a name that was used in the past as long as it's not currently in use, it's not obvious that we should simply meet specification 2. So I think the problem specification should be clarified.

Dominant language
Ruby
Stars
362
Forks
566
Avg merge
15h 13m
Merged PRs (30d)
8

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from exercism/problem-specifications

All issues in exercism/problem-specifications

Similar issues

More Ruby issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.