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
Paraya
October 10, 2017
Programming
1
120
命名おじさん
Paraya
October 10, 2017
Tweet
Share
More Decks by Paraya
See All by Paraya
J2K failure story : UNIT
paraya3636
0
65
J2Kコンバータをカスタマイズする ver: 5min
paraya3636
0
1.7k
J2Kコンバータをカスタマイズする
paraya3636
1
2.1k
Step up Kotlin
paraya3636
0
66
DDD失敗談
paraya3636
0
96
Other Decks in Programming
See All in Programming
タクシーアプリ『GO』のリアルタイムデータ分析基盤における機械学習サービスの活用
mot_techtalk
6
1.7k
Macとオーディオ再生 2024/11/02
yusukeito
0
390
OnlineTestConf: Test Automation Friend or Foe
maaretp
0
120
Amazon Qを使ってIaCを触ろう!
maruto
0
420
ActiveSupport::Notifications supporting instrumentation of Rails apps with OpenTelemetry
ymtdzzz
1
260
NSOutlineView何もわからん:( 前編 / I Don't Understand About NSOutlineView :( Pt. 1
usagimaru
0
350
どうして僕の作ったクラスが手続き型と言われなきゃいけないんですか
akikogoto
1
130
TypeScriptでライブラリとの依存を限定的にする方法
tutinoko
3
740
よくできたテンプレート言語として TypeScript + JSX を利用する試み / Using TypeScript + JSX outside of Web Frontend #TSKaigiKansai
izumin5210
7
1.8k
rails new flags - `rails new` のフラグから Rails を構成するコンポーネントの変遷をザックリ眺める
snaka
0
1.8k
距離関数を極める! / SESSIONS 2024
gam0022
0
310
AWS Lambdaから始まった Serverlessの「熱」とキャリアパス / It started with AWS Lambda Serverless “fever” and career path
seike460
PRO
1
270
Featured
See All Featured
Automating Front-end Workflow
addyosmani
1366
200k
Fight the Zombie Pattern Library - RWD Summit 2016
marcelosomers
232
17k
Performance Is Good for Brains [We Love Speed 2024]
tammyeverts
6
440
Templates, Plugins, & Blocks: Oh My! Creating the theme that thinks of everything
marktimemedia
26
2.1k
Testing 201, or: Great Expectations
jmmastey
38
7.1k
Building Your Own Lightsaber
phodgson
103
6.1k
Designing Experiences People Love
moore
138
23k
Responsive Adventures: Dirty Tricks From The Dark Corners of Front-End
smashingmag
250
21k
Distributed Sagas: A Protocol for Coordinating Microservices
caitiem20
329
21k
Building a Modern Day E-commerce SEO Strategy
aleyda
38
6.9k
A Tale of Four Properties
chriscoyier
156
23k
Why Our Code Smells
bkeepers
PRO
334
57k
Transcript
໋໊͓͡͞Μ Keisuke Miura IGNIS LTD.
ࣗݾհ • Android 3 / iOS3 • DDD / CleanArchitecture
/ CleanCode / Kotlinʹ ྗͯ͠Δ
໋໊͓͡͞Μ Keisuke Miura IGNIS LTD.
ΞδΣϯμ • ໋໊͓͡͞Μͷઆ໌ • ໋໊ʹͩ͜ΘΔཧ༝ • ·ͱΊ
͜Ε͔Β͘͝ී௨ͰҰൠతͳ Λ͠·͢ɻ ͔͠͠ϓϩάϥϜͷੈքͩͱ ୭͠ग़དྷ͓ͯΒͣɺͱͯ ͍͠ͳͷͩͱࢥͬͯͩ͘ ͍͞ɻ ຊ͕Կॻ͚ͯചΕΔϨϕϧͷͰ͢ʂ
໋໊͓͡͞Μͷઆ໌
໋໊͓͡͞Μͱ
None
͜Ε͕ΩοΧέͰ ໋໊͓͡͞ΜͱݺΕ ΔΑ͏ʹ
໋໊͓͡͞Μ͏͘͟ͳ ͍͔ͬ͢ʁͱ͍͏ؾ࣋ ͪɺ͋Δͱࢥ͍·͢ɻ ͏͍͟ͱࢥ͍·͢
ಈ͍ͯΔͳΒཁ݅ຬͨ ͯ͠ΔͷͰ Ϛʔδ͍ͨ͠ ϦϦʔε͍ͨ͠
ͳͥͦ͜·Ͱͩ͜ΘΔ ͷ͔
໋໊͓͡͞Μ͕ ໋໊ʹͩ͜ΘΔཧ༝
͠มΘΔͷͰ͕͢
ΦϒδΣΫτࢦͬͯ ͬͯ·͢ʁ
ΦϒδΣΫτࢦ • ΧϓηϧԽ • ܧঝ • ϙϦϞʔϑΟζϜ • ͏ΜͨΒ͔ΜͨΒ…
ͳͥΦϒδΣΫτࢦͰ࡞ Δ͖ͳͷ͔ͬͯ·͢ʁ
தଜ͞Μʂ
ͦΕਖ਼ղͰ͋Δͷ Ͱ͕͢…ਖ਼ղ
զʑਓ͕ؒࣗɺ ͜ͷੈքΛΦϒδΣΫτ ࢦͰଊ͍͑ͯΔ ͔ΒͰ͢ɻ
ΒͷෳࡶͳΛෳࡶͳ ··ߟ͑Δͷʹద͓ͯ͠Βͣɺ ɺࣄͱ͍͏֓೦ʹͯΊ ͯߟ͍͑ͯ·͢
ਫ Խ ʹ14.6g •৯ ણ ҡʹ1.5g ɹɹෆਫ༹ੑણҡʹ1.2g ɹɹਫ༹ੑણҡʹ0.3g
•λϯύΫ࣭ʹ0.2g •փɹɹɹʹ0.2g •ࢷɹɹɹ࣭ʹ0.1g ΦϒδΣΫτͷߏཁૉ ͜ΕΛͲ͏֮ͬͯ͑Δʁ ૬खʹ͑Δʁ ໊લͷແ͍ΦϒδΣΫτ
શ͖֮ͯ͑Εͳ͍ʂ ແཧʂ
ਫ Խ ʹ14.6g •৯ ણ ҡʹ1.5g ɹɹෆਫ༹ੑણҡʹ1.2g ɹɹਫ༹ੑણҡʹ0.3g
•λϯύΫ࣭ʹ0.2g •փɹɹɹʹ0.2g •ࢷɹɹɹ࣭ʹ0.1g ΦϒδΣΫτͷ֓೦Λද ໊͢લΛ͚Δ͜ͱͰཧ ղ͘͢͠ͳΔɻ Ϧϯΰ
ෳࡶͳɺࣄʹ దͳ໊લΛ͚Δͱ ཧղ͍͢͠
ٯʹݴ͏ͱదͰͳ͍ ໊લΛ͚Δͱɺͱͯ ͔Γਏ͍
ਫ Խ ʹ14.6g •৯ ણ ҡʹ1.5g ɹɹෆਫ༹ੑણҡʹ1.2g ɹɹਫ༹ੑણҡʹ0.3g
•λϯύΫ࣭ʹ0.2g •փɹɹɹʹ0.2g •ࢷɹɹɹ࣭ʹ0.1g దͰͳ໊͍લΛ͚ Δͱͱ͔ͯΓਏ͍ɻ ҧײΛײ͡Δɻ όφφ ΦϒδΣΫτͷཁૉͱ໊ લ͕טΈ߹͍ͬͯͳ͍
ෳࡶͳɺࣄʹదͨ͠ ໊લɺͭ·Γଞͷਓʹ ͔Δ໊લΛ͚ͳ͍ͱ͔ Γਏ͍
·ͨจ຺ʹ໊͋ͬͨલΛ ͚ͳ͍ͱ͔Γਏ͍Ͱ͢
จ຺ʹΑͬͯϦϯΰͱ͚ͩݴΘΕͯ அͰ͖ͳ͍έʔε͕͋Γ·͢ Ϧϯΰ͞Μͷ͓ (ೖΕͨ)Ϧϯΰ (ചͬͨ)Ϧϯΰ
໊લʹम০Λ͚Δ͜ͱͰͷจ ຺ʹ߹͏Α͏ʹͳΔ Ϧϯΰ͞Μͷ͓ ೖΕͨϦϯΰ ചͬͨϦϯΰ
͜ΕΒ
ϓϩάϥϛϯάʹ ͯ·Γ·͢
ͳͥͳΒਓ͕ؒෳࡶͳʹରॲ͢Δͨ ΊͷΦϒδΣΫτࢦ͕ɺϓϩάϥϛ ϯάͰར༻͞Ε͍ͯΔ͔ΒͰ͢
ෳࡶͳʹద໊ͨ͠લ Λ͚Δͱ͔Γ͢ ͍ɻ
దͳ໊લΛ͚Δͱ Ұ؏ͯ͑͠·͢ɻ Ϧϯΰ Ͳ͜ͰϦϯΰɻ
͜ΕΛDDDͰϢϏΩλεݴޠͱݴ͍·͢ɻ ϓϩάϥϜͰϦϯΰͲ͜·Ͱ͍ͬͯ ϦϯΰΛҡ࣋͢Δͱ͔Γ͍͢Ͱ͢ɻ fun cooking(banana: Apple) : AppleCake { val
cookingFood = cut(banana) return finish(cookingFood) } มʹ໊લΛ ม͑ͨΓ͠ͳ͍ appleͲ͜Ͱapple
·ͱΊ
• ෳࡶͳʹదͳ໊લΛ͚Α͏ɻ֓೦ Խ͢Δ͜ͱͰཧղ͘͢͠ͳΓ·͢ɻ • దͳ໊લҰ؏ੑΛ࣋ͪ·͢ɻϓϩάϥ Ϝاըॻ·ͰҰ؏໊ͨ͠લʹ͢Δͱཧ ղ͘͢͠ͳΓ·͢ɻ • ໊લ͚ͩͰจ຺ʹΑͬͯஅग़དྷͳ͍ έʔε͕͋Γ·͢ɻ໊લΛจ຺ʹ߹͏Α͏
ʹम০͠·͠ΐ͏ɻ
•࣮͢Δࡍจ຺Λҙࣝͨ͠ɺద͠ ໊ͨલΛٻ͠Α͏ɻ •಄ͷѱ͍ਓʹͳΒͳ͍Α͏ʹ͠Α͏
໋໊ͬͯେࣄ☺
࣭λΠϜ