0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

#0056(2024/02/24)memo「良いコード/悪いコードで学ぶ設計入門」第7章~コレクション~

Posted at

「良いコード/悪いコードで学ぶ設計入門」第7章~コレクション~ を読んで

アクティブリコール

  • 型チェックを初期化に組み込むみたいな話?

再読

  • if文での確認ではなく、anyMatchなどの既存のモジュールを使えないか考える(車輪の再発明をしない)
  • インスタンス変数の中身の不変を保つ
  • 重複コードを防ぐために、メソッドを使う
  • ファーストクラスコレクション
  • 早期break, 早期continue で可読性を高める

あとで調べる

  • ファーストクラスコレクション(クラス処理のカプセル化)
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?