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
エンティティリレー
Search
l-freeze
October 09, 2024
0
28
エンティティリレー
l-freeze
October 09, 2024
Tweet
Share
More Decks by l-freeze
See All by l-freeze
referential-transparency
lfz
0
17
CQRS そして現実へ
lfz
0
50
Featured
See All Featured
Cheating the UX When There Is Nothing More to Optimize - PixelPioneers
stephaniewalter
287
14k
Beyond borders and beyond the search box: How to win the global "messy middle" with AI-driven SEO
davidcarrasco
1
49
DevOps and Value Stream Thinking: Enabling flow, efficiency and business value
helenjbeal
1
89
ReactJS: Keep Simple. Everything can be a component!
pedronauck
666
130k
GraphQLの誤解/rethinking-graphql
sonatard
74
11k
Why You Should Never Use an ORM
jnunemaker
PRO
61
9.7k
Avoiding the “Bad Training, Faster” Trap in the Age of AI
tmiket
0
72
[Rails World 2023 - Day 1 Closing Keynote] - The Magic of Rails
eileencodes
38
2.7k
Max Prin - Stacking Signals: How International SEO Comes Together (And Falls Apart)
techseoconnect
PRO
0
80
Art, The Web, and Tiny UX
lynnandtonic
304
21k
Joys of Absence: A Defence of Solitary Play
codingconduct
1
290
We Have a Design System, Now What?
morganepeng
54
8k
Transcript
エンティティリレー
エンティティリレーとは? • エンティティは識別可能な情報モデルの事 • リレーは引き継いで行く、繋いで行く事 陸上競技のリレーならバトンを次の走者に繋いできますね 前の走者にバトンを渡すこともありませんね
エンティティをリレーせずに人の成長を表現してみると 番号:1 名前:猫山さん 性別:男 年齢:0 職業:新生児 番号:1 名前:猫山さん 性別:男 年齢:4
職業:幼稚園児 番号:1 名前:猫山さん 性別:男 年齢:7 職業:小学生 番号:1 名前:猫山さん 性別:男 年齢:13 職業:中学生
エンティティをリレーすると 番号:1 名前:猫山さん 性別:男 年齢:0 生まれたぜ 番号:1 名前:猫山さん 性別:男 年齢:4
幼稚園児です 番号:1 名前:猫山さん 性別:男 年齢:7 小学生に なりました 番号:1 名前:猫山さん 性別:男 年齢:7 中学生ですけ ど?
何が変わった?(リレーなし) 人が持つ情報を見れば名前・性別・年齢・職業が分かる
何が変わった?(リレーあり) 持っている情報を見なくても職業が分かるようになった
エンティティリレーが有効な条件を考えてみよう エンティティとは固有識別可能なモノが情報や状態を持っている リレーは不可逆 という事は? オンラインショッピング ・選択中の商品 → 会計済み商品 → 発送済みの商品
→ 返品済みの商品 面接試験 ・応募した → 一次面接通過 → 二次面接通過 → 最終面接通過
エンティティリレーを用いて面接を表現してみると エンティティリレーの説明用 https://github.com/l-freeze/entity-relay-ts