2021-10-01から1ヶ月間の記事一覧
結論 ドメイン駆動設計を意識しているせいで余計な事ばかりしているケースが多い... 説明 最近の僕の感想は、 「ドメインに興味を持てないならドメイン駆動設計はやめた方がいいと思う」 です。 と言うのは、よいドメインモデルを見つけ出して、そのドメイン…
結論 Spring Frameworkでよく見受けられる下記のような設計をするのであれば@Transactionalは、application層ではなくinfrastructure層で使うべきだと思う。 presentation層(@Controller) application層(@Service) infrastructure層(@Repository) 説明…
結論 .example { /* position, margin などの位置関係 */ position: fixed; bottom: 0; /* 要素の大きさ関係 */ height: 100px; width: 100%; padding: 1% /* flex系 */ display: inline-flex; justify-content: center; align-items: center; /* その他 */ …
結論 application層のServiceやRepository、infrastructure層のDBアクセスの実装は一旦無視する。 メモリに永続的に保存出来ると仮定する。 Junitのテスト上でドメインオブジェクトだけで機能を実装するようにする(永続化を無視しているので現実には出来な…