Robot name is ambiguous with regard to created vs booted
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 5/5
- 見積もり時間
- 1週間以上
- 初心者へのやさしさ
- 25/100
- issue の種類
- 機能追加
- 明瞭さ
- 説明が足りない
- 活発さ
- 停滞
- 技術スタック
- javascript
調査の方向性
exercises/robot-name/description.md から始め、特にロボットが工場の製造ラインから出てきて電源を入れられることについての表現を確認してください。既存の演習の期待事項を見直し、ライフサイクルに明示的な状態が必要か、またはより明確な表現が必要かを判断してください。作成、名前の問い合わせ、初回の電源オンの動作が実装者にとって曖昧でなければ完了です。
索引モデルが issue の本文から書いたものです。
説明
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?
- 主要言語
- Ruby
- スター
- 362
- フォーク
- 566
- 平均マージ
- 15時間 13分
- マージ済み PR(30日)
- 8
環境構築
このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
exercism/problem-specifications のほかの issue
-
難易度 1/5 1時間未満 初心者へのやさしさ 90/100
exercism/problem-specifications#2686 ·
メンテナーはふだん 1 日以内に返信
-
難易度 5/5 1週間以上 初心者へのやさしさ 25/100
exercism/problem-specifications#2704 · コメント 21 件 · リアクション 8 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 1/5 1〜3時間 初心者へのやさしさ 35/100
exercism/problem-specifications#2153 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 4/5 3〜5日 初心者へのやさしさ 35/100
exercism/problem-specifications#2120 · コメント 7 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 5/5 1週間以上 初心者へのやさしさ 25/100
exercism/problem-specifications#2108 · コメント 1 件 · リアクション 5 件 ·
メンテナーはふだん 1 日以内に返信
exercism/problem-specifications の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
メンテナーはふだん 1 日以内に返信
-
Bug Ruby Waiting for: Product Owner
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
getsentry/sentry-ruby#3228 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
メンテナーはふだん 1 日以内に返信
-
開発用DockerイメージにPlaywrightのシステム依存を追加する対応中かも @momocus が今日担当しました。 オープン
難易度 1/5 1時間未満 初心者へのやさしさ 85/100
sakazuki-org/sakazuki#1453 ·
メンテナーはふだん 3 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100