Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
コードレビュー受けるのが怖くて視聴者枠で申し込んだのですが、レビュー受けた方が良いだろうと思い直しプルリクエストを作成させていただきました。
IV, IX, XL
とかの減算則で書かれているものをまとめたハッシュの命名や、V, L, D
など 10 進数だと無い桁の変数名をどうしようかと悩みました(そもそも、言語化が難しい概念を変数に入れて処理するというロジックが良く無いのだとは思いますが)gsub!
で破壊的にしてるのとか、条件式でif num == 4 || num ==9
みたいに、ぱっと見で意味の分からない値を入れている点は良くないだろうなと思いつつ、どうアプローチすれば良いものか分からないです