Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

lsコマンド1を作成する #24

Closed
asya81 opened this issue Nov 20, 2022 · 2 comments
Closed

lsコマンド1を作成する #24

asya81 opened this issue Nov 20, 2022 · 2 comments

Comments

@asya81
Copy link
Owner

asya81 commented Nov 20, 2022

lsコマンドを作る1 | FBC に沿って、lsコマンド(オプションなし)を作る。

refs #20 #21 #22 #23

@asya81
Copy link
Owner Author

asya81 commented Nov 26, 2022

レビュー指摘事項

  • メソッド名が適切になるよう修正する(ファイルとディレクトリの両方を含む言葉を使う)
  • マジックナンバーを使わない
  • 二次元配列をループして表示用の文字列を作成する処理をよりシンプルにする
  • 出力する処理も含めてmain メソッドの中で行う
  • テストケースが1件しかないので、適切な数だけテストを追加する

@asya81
Copy link
Owner Author

asya81 commented Dec 4, 2022

再レビュー指摘事項

  • 同様の修正についてはコミットをまとめるとよい(gitのどのコマンドを使うのか?要調査→git rebase -i
  • 定数名に説明不要な単語は含めない
  • 特殊なパターンのテストを追加(要素数とその出力される行列数に着目して、パターンを洗い出すと良い)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant