コードの自動修正によって実現する、機能開発を止めないフレームワーク移行
by
gree_tech
Link
Embed
Share
Beginning
This slide
Copy link URL
Copy link URL
Copy iframe embed code
Copy iframe embed code
Copy javascript embed code
Copy javascript embed code
Share
Tweet
Share
Tweet
Slide 1
Slide 1 text
ίʔυͷࣗಈमਖ਼ʹΑ࣮ͬͯݱ͢Δ ػೳ։ൃΛࢭΊͳ͍ϑϨʔϜϫʔΫҠߦ άϦʔϥΠϑελΠϧגࣜձࣾ ଜ༸ଠ
Slide 2
Slide 2 text
ଜ༸ଠ ˔ॴଐ ˓ άϦʔϥΠϑελΠϧגࣜձࣾ ϓϩμΫτ։ൃ෦ ϝσΟΞ։ൃ άϧʔϓ ΤϯδχΞϦϯάνʔϜ ˔ܦྺ ˓ άϦʔϥΠϑελΠϧגࣜձࣾ ೖࣾ ˓ ओʹʮ-*.*"ʯͷαʔόʔɾΠϯϑϥ։ൃ ࣗݾհ 2 2
Slide 3
Slide 3 text
LIMIAを知っていますか? ⓘ Start presenting to display the poll results on this slide.
Slide 4
Slide 4 text
͓खܰͰɺ͙͢ਅࣅͰ͖ΔͷʹɺͪΌΜͱΒ͍͢͠ɻ -*.*"Ոࣄͷ͕େू߹͢ΔϥΠϑελΠϧϝσΟΞͰ͢ɻ ͓खܰͰՈࣄ্ख -*.*"ͷհ
Slide 5
Slide 5 text
˔Ҡߦલ ˓ ϑϨʔϜϫʔΫ ˙ 'VFM1)1 ˓ ݴޠ ˙ 1)1 ˓ Πϯϑϥ ˙ &$ ˔Ҡߦޙ ˓ ϑϨʔϜϫʔΫ ˙ -BSBWFM ˓ ݴޠ ˙ 1)1 ˓ Πϯϑϥ ˙ &$4'BSHBUF 5 ϑϨʔϜϫʔΫҠߦϓϩδΣΫτ https://aws.amazon.com/jp/architecture/icons/
Slide 6
Slide 6 text
6 ҠߦϓϩδΣΫτͷεέδϡʔϧ ˔ػೳ։ൃΛࢭΊͣʹҠߦͯ͠ཉ͍͠ͱ͍͏ཁ ˔Ҡߦʹ͔͚ΒΕΔݶΒΕ͍ͯͨ ˓ ฒߦ։ൃظ͕ؒͦ͏ͳݟࠐΈͩͬͨ 方針 検討 コード自動修正ルールの作成 QA・バグ修正 インフラ検証 ݄ ݄ ݄ ݄ ݄ ࣮ࡍͷҠߦεέδϡʔϧ 社内管理ツール リリース カナリヤ リリース開始 0.5人 1人 2人
Slide 7
Slide 7 text
7 ͳͥࣗಈमਖ਼ʹ౿Έ͔ͬͨʁ ˔ܰྔͳ'VFM1)1ػೳͷଟ͍-BSBWFMͷҠߦ ˓ %# 2VFSZ#VJMEFS $POUSPMMFS͋ͨΓΛஔ͖͑Εྑͦ͞͏ ˓ 7JFXपΓςϯϓϨʔτΤϯδϯΛஔ͖͑Δ͚ͩͰྑͦ͞͏ ˔खಈमਖ਼ͷݫ͠͞ ˓ ສߦ͑ͷίʔυϕʔε ˓ ਓ͕࣌ؒΓͳ͍ ˓ ػೳ։ൃΛฒߦͰߦ͍͍͕ͨʜʜ ˙ ҠߦݩͱҠߦޙͷίʔυͷ྆ํΛมߋ͢Δඞཁ͕͋Δ ˙ ҠߦޙͷίʔυʹมߋΛՃ͑ΔͱDPOGMJDU͕ى͜ΓಘΔ ˙ ػೳ։ൃΛࢭΊΔ͔͠ͳ͍͕ɺࢭΊͨ߹ۙ͘ػೳ։ൃ͕ਐ·ͳ͍͜ͱ ͕ݟࠐ·Εͨ
Slide 8
Slide 8 text
8 3FDUPS SFDUPSQIQSFDUPS ˔ࣗಈϦϑΝΫλϦϯάɾϚΠάϨʔγϣϯπʔϧ ˓ %FBE$PEF &BSMZ3FUVSOͳͲͷϦϑΝΫλϦϯάϧʔϧ ˓ 1)1όʔδϣϯͷVQHSBEF EPXOHSBEF ˔ಛ ˓ OJLJDQIQBTU Λϕʔεʹநߏจʢ"45ʣΛฤू ˓ ܕใΛ1)14UBO͔ΒऔಘͰ͖Δ ˓ ςετ͕ॻ͖͍͢ ˓ ։ൃ͕׆ൃ
Slide 9
Slide 9 text
9 ϑϨʔϜϫʔΫҠߦʹ͓͚Δίʔυͷमਖ਼ྫ ˔2VFSZ#VJMEFSͷஔ͖͑ ˓ XIFSF DPM JO C XIFSF*O B C ˓ XIFSF DPM TVC2VFSZ XIFSF4VC DPM TVC2VFSZ ˓ %#TFMFDU@BSSBZ <JE OBNF> %#TFMFDU JE OBNF ˔$POUSPMMFSͷஔ͖͑ ˓ *OQVU 3FRVFTU 3FTQPOTFͳͲΛରԠ͢Δϝιουʹஔ͖͑ ˓ $POUSPMMFSΛQTS४ڌʹSFOBNF ˓ QTSͷOBNFTQBDFʹ߹ΘͤͨσΟϨΫτϦҠಈ
Slide 10
Slide 10 text
10 3FDUPSͷมྫ&BSMZ3FUVSO $IBOHF/FTUFE*GT5P&BSMZ3FUVSO3FDUPS public function hoge($value) { if ($value % 2 === 0) { if ($value % 3 === 0) { return 'yes'; } } return 'no'; } public function hoge($value) if ($value % 2 !== 0) { return 'no'; } if ($value % 3 === 0) { return yes; } return 'no'; }
Slide 11
Slide 11 text
11 நߏจ "CTUSBDU4ZOUBY5SFF"45 https://github.com/nikic/PHP-Parser
Slide 12
Slide 12 text
12 3FDUPSͷॲཧʢநߏจͷฤूʣ public function getNodeTypes(): array { return [String_::class]; } public function refactor($node): ?Node { if ($node->value === "Hello World!") { $node->value = "Hello GREE Tech Conf!"; return $node; } return null; } Scalar_String value: Hello GREE Tech Conf! Stmt_Expression expr Expression_Assign var, expr Expression_Variable name: var expr var Scalar_String value: Hello World! Scalar_String value: Hello World!
Slide 13
Slide 13 text
13 3FDUPSͷॲཧʢநߏจ͔Βίʔυͷߏஙʣ Scalar_String value: Hello GREE Tech Conf!
Slide 14
Slide 14 text
14 ࣮ࡍͷίʔυࣗಈमਖ਼ͷྫ 'VFM1)1 ¥DB::select_array(['id', 'name'])->from('user'); -BSBWFM ¥DB::table('user')->select('id', 'name')
Slide 15
Slide 15 text
15 ࣮ࡍͷ3FDUPSϧʔϧTFMFDUGSPNΛUBCMFTFMFDU ¥DB::select_array(['id', 'name'])->from('user'); ¥DB::table('user')->select_array(['id', 'name']); TFMFDUGSPNΛUBCMFTFMFDUʹมߋ
Slide 16
Slide 16 text
16 ࣮ࡍͷ3FDUPSϧʔϧTFMFDU@BSSBZΛTFMFDU ¥DB::table('user')->select('id', 'name'); ¥DB::select_array(['id', 'name'])->from('user'); ¥DB::table('user')->select_array(['id', 'name']); TFMFDUGSPNΛUBCMFTFMFDUʹมߋ TFMFDU@BSSBZͷҾΛల։
Slide 17
Slide 17 text
作成したRectorのルール数 ⓘ Start presenting to display the poll results on this slide.
Slide 18
Slide 18 text
18 ͑
Slide 19
Slide 19 text
19 ͳͥࣗಈमਖ਼ʹ౿Έ͔ͬͨʁʢ࠶ܝʣ ˔ܰྔͳ'VFM1)1ػೳͷଟ͍-BSBWFMͷҠߦ ˓ %# 2VFSZ#VJMEFS $POUSPMMFS͋ͨΓΛஔ͖͑Εྑͦ͞͏ ˓ 7JFXपΓςϯϓϨʔτΤϯδϯΛஔ͖͑Δ͚ͩͰྑͦ͞͏ ˔खಈमਖ਼ͷݫ͠͞ ˓ ສߦ͑ͷίʔυϕʔε ˓ ਓ͕࣌ؒΓͳ͍ ˓ ػೳ։ൃΛฒߦͰߦ͍͍͕ͨʜʜ ˙ ҠߦݩͱҠߦޙͷίʔυͷ྆ํΛมߋ͢Δඞཁ͕͋Δ ˙ ҠߦޙͷίʔυʹมߋΛՃ͑ΔͱDPOGMJDU͕ى͜ΓಘΔ ˙ ػೳ։ൃΛࢭΊΔ͔͠ͳ͍͕ɺࢭΊͨ߹ۙ͘ػೳ։ൃ͕ਐ·ͳ͍͜ͱ ͕ݟࠐ·Εͨ
Slide 20
Slide 20 text
20 ίʔυͷࣗಈमਖ਼ʹΑΔػೳ։ൃͱҠߦͷฒߦ։ൃ ։ൃϒϥϯν ˓ ػೳ։ൃɺόάमਖ਼ ˓ 1)1ʹ͏ίʔυमਖ਼ Ҡߦ༻ϒϥϯν ˓ 3FDUPSͷϧʔϧͷ࡞ ˓ -BSBWFMؔ࿈ϑΝΠϧͷՃ ࠓ·Ͱ௨ΓͷϑϩʔͰ 2"ɾϦϦʔε $*ʹΑΔ ࣗಈमਖ਼ ҠߦڥͰͷςετ ΞϓϦέʔγϣϯͷίʔυ Ҡߦ༻ϒϥϯνͰฤू͠ͳ͍
Slide 21
Slide 21 text
21 ͲΕ͘Β͍ࣗಈमਖ਼ͰҠߦͰ͖͔ͨ ˔1)1ϑΝΠϧϑΝΠϧ͘Β͍ ˔มߋྔ ˔खಈͰҠߦͨ͠ϑΝΠϧʢʙϑΝΠϧʣ ˓ ೝূपΓ ˓ ϧʔςΟϯά ˓ 'PSNBUUFS "HFOUͳͲ'VFM1)1ʹ͔͠ͳ͍ػೳ
Slide 22
Slide 22 text
22 ίʔυͷࣗಈमਖ਼ΛΔ্Ͱʜʜ ˔ςετ ˓ ͋Δͱͱͯྑ͍ ˓ -*.*"Ͱςετ͋·Γಈ͍͍ͯͳ͔ͬͨ ˔3FDUPSϧʔϧͷςετ ˓ ϧʔϧʹΑΔมΛ͋ΔఔอূͰ͖Δ ˓ 3FDUPSCSFBLJOHDIBOHF͕ଟ͍ͷͰ݁ߏʹཱͬͨ ˔੩తղੳπʔϧ ˓ 1)14UBOͷಋೖ ˙ Ұ൪ʹͨͬͨ ˙ ػೳ։ൃͷํͷόάݕग़ͯ͘͠Εͨ
Slide 23
Slide 23 text
23 ࣗಈमਖ਼Ͱۤ࿑ͨ͜͠ͱ ˔Ͳ͏ͯࣗ͠ಈमਖ਼͕ͦ͠͏ͳίʔυ ˓ ΊͪΌͪ͘Όෳࡶͳ2VFSZ#VJMEFS ˓ ༷͔ΒΑ͘Θ͔Βͳ͍ίʔυ ݩͷίʔυଆΛ3FDUPSͰมͰ͖ΔϦϑΝΫλϦϯάͨ͠ ͍ͦͦΒͳ͍ίʔυ͕ଟ͔ͬͨͷͰফ͠·ͬͨ͘ʢສߦʣ ˔πʔϧଆͷόά ˓ ਖ਼ͦ͠͏ͳͷʹಈ͔ͳ͍ͱࢥͬͨΒόʔδϣϯΛม͑Δͱಈ͍ͨΓ ˓ 3FDUPSͷ$BDIF͕յΕ͍ͯΔ 044ͳΜ͔ͩΒࣗͰ͢ʂʂ
Slide 24
Slide 24 text
24 ࣗಈमਖ਼ʹΑΔҠߦ·ͱΊ ˔ྑ͔ͬͨ͜ͱ ˓ ྔʹର߅Ͱ͖Δ ˓ ώϡʔϚϯΤϥʔΛݮΒͤΔ ˓ ৽نՃ͞ΕͨϑΝΠϧࣗಈͰҠߦ͞ΕΔ ˓ ػೳ։ൃͱDPOqJDU͢Δ͜ͱ͕ͳ͍ ˔ѱ͔ͬͨ͜ͱ ˓ -BSBWFMͷػೳΛϑϧʹ͑ͳ͍ ˓ நߏจͷਂ͍ࣝͳͲ͕ඞཁͰଐਓԽ͍͢͠
Slide 25
Slide 25 text
25 ҠߦϓϩδΣΫτΛऴ͑ͯ ˔ࣗಈमਖ਼Λܾஅͯ͠ྑ͔ͬͨ ˔3FDUPSͱ͍͏πʔϧʹग़ձ͑ͯྑ͔ͬͨ ˓ 1)11)1Ͱ׆༂ͦ͠͏ʂ ˓ ϦϑΝΫλϦϯάπʔϧͱͯ͠$*ʹೖΕ͍ͨ ˔ΠϯϑϥͷҠߦָ͔ͬͨ͠ ˓ 71$5SBGGJD.JSSPSJOHʹΑΔෛՙςετ ˓ &$ͱ'BSHBUFͰͷΧφϦϠϦϦʔεΛߦ͏ͨΊͷ ˓ $*$%େ෯ʹվળ ˓ ΤϯδχΞϒϩάॻ͖͍ͨͱࢥ͍ͬͯ·͢ʜʜ
Slide 26
Slide 26 text
26