$30 off During Our Annual Pro Sale. View Details »
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
純粋関数からDI
Search
kii310
June 06, 2024
2
210
純粋関数からDI
こちらのイベントで発表した資料です
https://progate.connpass.com/event/319415/
kii310
June 06, 2024
Tweet
Share
More Decks by kii310
See All by kii310
カリー化と部分適用(更新) / currying_and_partial_application_in_TypeScript
kii310
0
83
ディスパッチについて
kii310
1
19
再帰関数は無名関数にできるか?
kii310
2
150
未来は現在からの継続
kii310
3
470
アーキテクチャの一番最初の話
kii310
1
42
カリー化と部分適用
kii310
3
95
抽象に依存する
kii310
1
99
抽象に依存する 〜概論編〜
kii310
2
86
初心忘るべからず
kii310
1
230
Featured
See All Featured
10 Git Anti Patterns You Should be Aware of
lemiorhan
PRO
659
61k
Why You Should Never Use an ORM
jnunemaker
PRO
60
9.6k
Principles of Awesome APIs and How to Build Them.
keavy
127
17k
Fantastic passwords and where to find them - at NoRuKo
philnash
52
3.5k
Learning to Love Humans: Emotional Interface Design
aarron
274
41k
How to Think Like a Performance Engineer
csswizardry
28
2.3k
Build The Right Thing And Hit Your Dates
maggiecrowley
38
2.9k
Measuring & Analyzing Core Web Vitals
bluesmoon
9
680
Design and Strategy: How to Deal with People Who Don’t "Get" Design
morganepeng
132
19k
Documentation Writing (for coders)
carmenintech
76
5.2k
Building an army of robots
kneath
306
46k
CoffeeScript is Beautiful & I Never Want to Write Plain JavaScript Again
sstephenson
162
15k
Transcript
LJJ ७ਮ͔ؔΒ%*
w LJJͱ͍͍·͢ w ଔͷจܥେֶੜ w Πϯλʔϯ w 5ZQF4DSJQUͰόοΫΤϯυ w ΧϯϑΝϨϯεʹΑ͍͘Δ
ࣗݾհ 9ΞΧϯτ
࣍ w ͍͑ͨ͜ͱ w ७ਮؔʹ͍ͭͯ w %*ͯ͠ΈΔ
͍͑ͨ͜ͱ ७ਮؔΛ௨ͯ͠ɺ %*ͷຊ࣭ΛֶΜͰ΄͍͠
७ਮؔͱʁ
७ਮؔͱɺɺɺ Ҿ͕ಉ͡Ͱ͋Εɺඞͣಉ݁͡ՌΛฦؔ͢ͷ͜ͱ ࢀরಁաੑ͕͋Δͱݴ͍·͢
Ҿͷ͕ಉ͡Ͱ͋Εɺඞͣಉ݁͡ՌΛฦ͢ʂ
७ਮؔͷԿ͕خ͍͠ͷ͔ʁ
෭࡞༻͕ͳ͍ͷͰόά͕ى͖ʹ͍͘ ςετ͕༻ҙ มߋ͕༰қʹͳΔ ˞෭࡞༻ͱɺ zϓϩάϥϜ͕࣮ߦ͞Εͨࡍʹɺͦͷಈ࡞ʹΑͬͯɺظ͠ͳ͍෭࣍తͳมԽ͕ى͖Δ͜ͱΛࢦ͠·͢ɻྫ͑ɺ͋ Δ͕ؔҾͱͯ͠ड͚औͬͨมͷΛมߋͨ͠߹ɺͦΕ෭࡞༻ͱͳΓ·͢ɻϓϩάϥϜ͕෭࡞༻Λ࣋ͭͱɺ ͦͷϓϩάϥϜ֎෦ͷঢ়ଶΛมԽͤ͞ΔՄೳੑ͕͋ΔͨΊɺϓϩάϥϜͷৼΔ͍͕༧ଌͰ͖ͳ͘ͳΓ·͢ɻz ࢀߟ
७ਮؔɺ อकੑΛߴΊΔʂ
७ਮؔͰͳ͍ؔʁ
࣌ؒʹΑͬͯ݁Ռ͕มΘΔؔ ͭ·Γ ७ਮؔͰͳ͍
͜Μͳίʔυॻ͍ͯ·ͤΜ͔ʁ
͜Ε͚ͩͰɺอकੑ͕֨ஈʹ্͕Δʂ
༨ஊ ແ໊ؔͰଈ࣮࣌ߦ͢Δͱ͖ɺΫϩʔδϟ֎ͷมΛࢀর͢Δͷ៉ྷ͡Όͳ͍
తʹײ͡ΒΕΔ͕ɺͬͪ͜ͷํ͕៉ྷʹײ͡Δ ͦͦؔΛΓ͚Ε͍͍͚ͩͳͷ͕ͩɺɺɺ
ຊʹΓ·͢
ͭ·Γ७ਮؔɺ มԽͷ͋ΔͷΛ֎ଆ͔Β͢͜ͱͰ෦Λ៉ྷʹอ͍ͬͯΔ มԽͷ͋Δͷͱɺ͕ؔͦΕʹΑͬͯ݁ՌΛม͑ͯ͠·͏ͷ ͭ·Γґଘੑ͕͋ΔͷΛؔͷ֎ʹ͍ग़͍ͯ͠Δ
͜ͷίʔυ࣌ؒʹґଘ͍ͯ͠Δ ˞࠶ܝ
͜Εͬͯ%*ͱ͍ͬͯΔ͜ͱಉ͡͡Όͳ͍ʁ
ґଘੑೖʢ%*ʣͱʁ zҰͭͷΦϒδΣΫτ͕ผͷΦϒδΣΫτΛ׆ ༻͢ΔࡍʹɺͦͷΦϒδΣΫτΛ֎෦͔Βڙڅ ͢Δख๏Ͱ͢ɻ͜ΕʹΑΓɺΦϒδΣΫτؒͷ ґଘؔΛղফ͢Δ͜ͱ͕ՄೳͱͳΓ·͢ɻz ࢀߟ
ࠓճTFSWJDFʢϏδωεϩδοΫ෦ʣͷίʔυΛ%*͠·͢
͜ͷTFSWJDFɺ SFQPTJUPSZʹґଘ ͍ͯ͠Δ
ҾͰSFQPTJUPSZΛ͢͜ͱͰґଘੑݮͬͨ ͔͠͠ɺ͋·ΓޮՌ͕ײ͡ΒΕͳ͍
७ਮੑΛอ͍ͪͨͷTFSWJDFؔશମ Ҿ෦TFSWJDFؔͷҰ෦ ͦͷͨΊɺґଘੑͱຊମͷ͕ؔҾͷஈ֊Ͱࠞͬͯ͟͠·͍ͬͯΔ
ίϯετϥΫλʹ͍ۙ
ґଘੑΛ֎෦͔Βೖ͢Δ͜ͱͰɺ෦Λ७ਮʹอͭ͜ͱ͕Ͱ͖ͨ
·ͱΊ ७ਮؔ෦ʹґଘͷͳ͍ؔͷ͜ͱ %*ʹ͓͍ͯґଘੑΛؔͷ֎ଆʹ࣋ͭ͜ͱ७ਮؔͱߟ͑ํ͕ಉ͡
͝ਗ਼ௌ͋Γ͕ͱ͏͍͟͝·ͨ͠