Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
Scalaの現場から学ぶ設計:座談会 / genba sekkei vol 2
Search
集約のエンティティ
March 19, 2022
Programming
0
510
Scalaの現場から学ぶ設計:座談会 / genba sekkei vol 2
2022年3月19日に開催された ScalaMatsuri 2022 で開催した座談会のスライドです。
https://scalamatsuri.org/
集約のエンティティ
March 19, 2022
Tweet
Share
More Decks by 集約のエンティティ
See All by 集約のエンティティ
戦略的DDDは重いのか? / Is strategic DDD heavy?
pictiny
2
490
戦略的DDDを実践するための跳躍力 / OOC 2024
pictiny
7
7.5k
どうしてこうなった命名集 ~🔥編~ / OOC 2024 LT
pictiny
5
4.1k
おかしな名前 ~ 🔥編 ~ / Strange Name
pictiny
1
210
ドローンの会社は生成AIをどう活用するか / Generative AI Bounenkai 2023
pictiny
0
260
日報には"今日の一番大きな成果"を書こう / Kichijoji.pm 34
pictiny
0
890
Scalaの現場から学ぶ設計 告知 / genba sekkei vol.2 announce
pictiny
1
140
現場から学ぶシステム設計:座談会 / genba sekkei vol 1
pictiny
5
1.8k
真のアジャイル / Clean Agile
pictiny
1
130
Other Decks in Programming
See All in Programming
Effectで作る堅牢でスケーラブルなAPIゲートウェイ / Robust and Scalable API Gateway Built on Effect
yasaichi
7
1.1k
Webアプリをできるだけコードを手書きしないで作ってみる
tomokusaba
2
230
Exploring the Implementation of “t.Run”, “t.Parallel”, and “t.Cleanup”
akarin
1
150
How to improve maintainability and readability of your automated tests? ( #scrumniigata )
teyamagu
PRO
1
110
Scalable Customer Journey Orchestration (CJO)
lewuathe
0
470
MicrosoftのPlatform Engineeringガイドを読んで実際になにかやってみた
ymd65536
1
540
SIMD Parallel Programming with the Vector API
josepaumard
0
250
TypeScriptの型とパフォーマンス (TSKaigi 2024)
ypresto
13
3.4k
AppRouter Panel Talk
yosuke_furukawa
PRO
1
510
Sheets API使ってみた
toshi0383
2
170
Docker_OSS_ホスティング入門
satokoki645
0
130
Compose-View Interop in Practice (mDevCamp 2024)
stewemetal
0
170
Featured
See All Featured
Designing the Hi-DPI Web
ddemaree
276
33k
[Rails World 2023 - Day 1 Closing Keynote] - The Magic of Rails
eileencodes
9
1.3k
Build your cross-platform service in a week with App Engine
jlugia
226
17k
The MySQL Ecosystem @ GitHub 2015
samlambert
244
12k
No one is an island. Learnings from fostering a developers community.
thoeni
16
2.1k
Dealing with People You Can't Stand - Big Design 2015
cassininazir
358
22k
Visualization
eitanlees
137
14k
Embracing the Ebb and Flow
colly
80
4.2k
I Don’t Have Time: Getting Over the Fear to Launch Your Podcast
jcasabona
23
1.6k
Responsive Adventures: Dirty Tricks From The Dark Corners of Front-End
smashingmag
245
20k
Docker and Python
trallard
35
2.7k
Become a Pro
speakerdeck
PRO
13
4.6k
Transcript
Scalaの現場から学ぶ 設計 座談会 2022.03.19
None
本セッションについて • アルプは社内で定期的に設計についての相談会を実施 • 今回はScalaMatsuriのバーチャルブースを借りて相談会の出張版となります • 質問やコメントはDiscordの #alp-雑談と実況 チャンネルにご投稿ください •
ツイッターのハッシュタグ #genba_sekkei もご利用ください
今日のテーマ オブジェクト指向(OOP)と関数型(FP)について
アルプにおけるOOPとFP • アルプではScalaでOOPをしっかりやっている ◦ DDDにも注力している • 同時にFPのエッセンスもプロダクトに取り入れている ◦ 一番の具体例は Eff
• アルプでのFP ◦ 静的型付き言語の表現力を上げるために使っている ◦ 可読性を上げるためのアーキテクチャの一部 相談(トークテーマ) • 設計の観点で、どういうときにFP(OOP)の要素が役に立つか • こう使うと可読性が上がるよね、などの言語化
OOPとFPの対立 • OOPとFPは対比して語られることが多い ◦ 部分的には相反しているかもしれないけど ◦ 全てが相反しているわけではない • ステートレスなOOPはOOPではないのか? ◦
そんなはずはない • 相反していないから、部分的に共存できる ◦ 両方の要素を実用的に取り入れている Scalaいいよね 相談(トークテーマ) • 双方のいいところを両取りしていくには • 何が相反していて、何が相反していないのか
2022年のFP • FPはどうしても難しい話から入ってしまいがち ◦ 高階関数、モナド、モナトラ • アルプではあまり意識せずにFPのエッセンスを使えている ◦ モナドがわからなくても for式で合成してくれる便利な道具(
Eff)がある • 他社の事例にもそういう流れはないのだろうか ◦ FPが実は身近になっている説 相談(トークテーマ) • FPが身近になっている事例があれば