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

「ビジネスロジック」とは何か、どう実装するのか #1291

Open
AkihikoWatanabe opened this issue Apr 21, 2024 · 1 comment
Labels

Comments

@AkihikoWatanabe
Copy link
Owner

https://qiita.com/os1ma/items/25725edfe3c2af93d735

@AkihikoWatanabe
Copy link
Owner Author

AkihikoWatanabe commented Apr 22, 2024

普段あいまいに使いがちなビジネスロジックについて、勉強になった。

  • プレゼンテーション層:ユーザからのI/Oのインタフェースに関する処理を実装
  • データアクセス層:ファイルやDBに対してデータを読み書き

本記事によると上記以外が「ビジネスロジック」という整理。
たとえば、じゃんけんの実装を例に説明がなされており、

  • 「じゃんけんの勝敗判定」:コアなルール系
  • 「コンピュータとじゃんけんをして、その結果をどこかに保存する処理を呼び出すという流れ」:処理の流れ系
    の両者はビジネスロジックに該当するとのこと。

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

No branches or pull requests

1 participant