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?

More than 1 year has passed since last update.

privateメソッドだらけのクラス(「良いコード悪いコードで学ぶ設計入門」復習)

Posted at

背景

「良いコード悪いコードで学ぶ設計入門」の復習の為です。
今回は「privateメソッドだらけのクラス」についてです。

privateメソッドだらけのクラス

privateメソッドが多いクラスは単一責任の原則を守れていない可能性があります。
異なる責務は別のクラスに分離しましょう。

最後に

privateメソッドだらけのクラスは業務でも書いてしまっているので、単一責任の原則を守れているか疑いたいなと思います。

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?