Robot name is ambiguous with regard to created vs booted
I maintainer di solito rispondono entro 1 giorno
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 5/5
- Tempo stimato
- Più di una settimana
- Idoneità per principianti
- 25/100
- Tipo di issue
- Funzionalità
- Chiarezza
- Da chiarire
- Stato di attività
- Ferma
- Stack tecnologico
- javascript
- Ambito
- documentation
Direzione di ricerca
Inizia da exercises/robot-name/description.md, in particolare dalla formulazione relativa a un robot che esce dalla fabbrica e viene acceso. Esamina le aspettative esistenti dell'esercizio e determina se il ciclo di vita necessita di uno stato esplicito o di una formulazione più chiara; il lavoro è completato quando il comportamento di creazione, richiesta del nome e prima accensione è inequivocabile per chi lo implementa.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
From the description:
When a robot comes off the factory floor, it has no name.
The first time you turn on a robot, a random name is generated
Yet most solutions / tests I've seen never make the "states"/timeline clear... what is the equivalent of "coming off the factory floor"? Most assume it's new Robot() or some such, ie the instantiation of the robot instances (in OOP languages), which makes sense. This might be a lot more literal if there was a RobotFactory though that created the robots instead of just a regular constructor (not that I'm arguing for that).
So, is the robot also ON at that time, or is that a step performed later? Many seem to think the robot isn't "on" until first queried for it's name and so therefore:
r = new Robot()
// r.name is null (but not always an easy way to query this)
r.name
// r.name has been assigned
I think this is ambiguous and unsatisfying though. One could obviously (via a direct access cable or some other method) query a robot name without powering on the robot, in case I would expect there to be no name - if it had not yet been turned on.
So I dislike the ambiguity regarding when a robot is "ON". I would suggest:
r = new Robot()
// r.name is null
r.name
// r.name is null
r.boot() // or r.turnOn(), etc
// r.name has been assigned
Ie:
- A newly constructed robot has no name
- Querying the name does not change the name
- A robot's name is generated "The first time you turn on a robot", as the instructions say literally.
- We make this on event explicit and part of the exercise
Thoughts?
- Lingua principale
- Ruby
- Stelle
- 362
- Fork
- 566
- Merge medio
- 15h 13m
- PR unite (30g)
- 8
Preparare l'ambiente
Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di exercism/problem-specifications
-
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 90/100
exercism/problem-specifications#2686 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 5/5 Più di una settimana Idoneità per principianti 25/100
exercism/problem-specifications#2704 · 21 commenti · 8 reazioni ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 1/5 1-3 ore Idoneità per principianti 35/100
exercism/problem-specifications#2153 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 35/100
exercism/problem-specifications#2120 · 7 commenti ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 5/5 Più di una settimana Idoneità per principianti 25/100
exercism/problem-specifications#2108 · 1 commento · 5 reazioni ·
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di exercism/problem-specifications
Issue simili
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
I maintainer di solito rispondono entro 1 giorno
-
Bug Ruby Waiting for: Product Owner
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
getsentry/sentry-ruby#3228 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
I maintainer di solito rispondono entro 1 giorno
-
開発用DockerイメージにPlaywrightのシステム依存を追加するForse già presa @momocus l’ha presa oggi. Aperta
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 85/100
sakazuki-org/sakazuki#1453 ·
I maintainer di solito rispondono entro 3 giorni
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100