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
2019.07.06 TamaRuby 会議01 CSBJOGDLॲཧܥͰཧղ͢Δ ύλʔϯϚονϯάΛ͔ͭͬͨ ૄ݁߹ͳ࣮ Shu OGAWARA (@expajp)
Slide 2
Slide 2 text
ࣗݾհ ◈4IV0("8"3" !FYQBKQ ⬩ ϦϯΧʔζͱ͍͏ձࣾͰಇ͍͍ͯ·͢ ⬩ (SPXSC 0UFNBDIJSC (JO[BSC 4UFQ5P3BJMT&YQFSUͳͲ ⬩ ϓϥΠϕʔτͰ7VFKTॻ͍ͯ·͢ ⬩ झຯ߹এ 2
Slide 3
Slide 3 text
3 5BNB3VCZձٞͷςʔϚ 3VCZJTUͱͯ͠ͷ
Slide 4
Slide 4 text
4 ࠷ۙɺٸܹʹ 3VCZ͕͍ͯ͠Δ
Slide 5
Slide 5 text
5
Slide 6
Slide 6 text
6 出典: https://speakerdeck.com/k_tsj/pattern-matching-new-feature-in-ruby-2-dot-7
Slide 7
Slide 7 text
ύλʔϯϚονϯά ◈DBTFXIFOͷ͍͢͝൛ ʴ ෳมͷೖʢଟॏೖʣ 7
Slide 8
Slide 8 text
5XJUUFSͷԠ ◈ؾʹͳΔʂ ◈ؾ࣋ͪΑ͘·ΔγνϡΤʔγϣ ϯ͕݁ߏ͋Γͦ͏Ͱ͍͍ ◈ه๏༷Α͘ߟ͑ΒΕͯͯɺ ͱͯศརͦ͏ 8
Slide 9
Slide 9 text
9 Ұํɺ͕ࣗࢥ͍ͬͯͨ͜ͱ
Slide 10
Slide 10 text
10 ີ݁߹ίʔυͷԹচͳͷͰʁ
Slide 11
Slide 11 text
11 ͓ଋʹࢥ͍͖ͬΓ͍ͯ͠Δ
Slide 12
Slide 12 text
12 ಈతܕ͚ΦϒδΣΫτࢦݴޠɿ3VCZͷ͓ଋ Βͳ͍͕དྷͨΒ ਖ਼ମ͍ͦͭࣗʹΒͤΖ ʢμοΫλΠϐϯά ʣ
Slide 13
Slide 13 text
13 ड͚औΓଆΦϒδΣΫτ ೖྗ ඞཁͳػೳΛఆٛ ͦΕʹ߹Θ࣮ͤͯ
Slide 14
Slide 14 text
ྫʣϘΠεϨίʔμʔ ◈͜ͷεϥΠυͰͣͬͱ͏ɺ ֓೦Λઆ໌͢ΔͨΊͷྫ ⬩ ௗͷ໐͖ΛԻ͢ΔϨίʔμʔ ⬩ WPJDF@SFDPSEFSSFDPSE CJSE ͰԻ͢Δ ⬩ WPJDF@SFDPSEFSQMBZͰ࠶ੜ͢Δ 14
Slide 15
Slide 15 text
ྫʣϘΠεϨίʔμʔ 15 ඞཁͳػೳΛఆٛ
Slide 16
Slide 16 text
ྫʣϘΠεϨίʔμʔ 16 ఆٛ͞Εͨػೳʹ ͋Θ࣮ͤͯ
Slide 17
Slide 17 text
ྫʣϘΠεϨίʔμʔ 17
Slide 18
Slide 18 text
ҰํɺύλʔϯϚονϯά ◈ड͚औΓ͏ΔʹԠͯ͡ɺ ύλʔϯΛ૿͢ ◈ࡍݶͳ͘ɺଞͷΦϒδΣΫτʹ ґଘͨ͠ίʔυ͕૿͑Δ ◈ີ݁߹ʹͳΔͷͰʁ 18
Slide 19
Slide 19 text
19 ड͚औΓଆΦϒδΣΫτ ೖྗ B " # $ͦΕͧΕड͚औͬͨࡍͷಈ࡞Λఆٛ ೖྗ A ೖྗ C
Slide 20
Slide 20 text
ྫʣϘΠεϨίʔμʔ 20 ػೳ͕ఆٛ͞Εͯͳ͍ͷͰ উखʹ࣮
Slide 21
Slide 21 text
ྫʣϘΠεϨίʔμʔ 21 ͦΕͧΕʹ͋Θͤͯ ड͚औͬͨࡍͷಈ࡞Λఆٛ
Slide 22
Slide 22 text
22 3VCZʹೖΕΔͷ ຊʹਖ਼͍͠ʁ
Slide 23
Slide 23 text
23
Slide 24
Slide 24 text
24 ݕূͷํ๏ ΦϒδΣΫτࢦઃܭͰॻ͍ͨίʔυʹ ύλʔϯϚονϯάΛಋೖͯ͠ΈΔ
Slide 25
Slide 25 text
ࡐʹ͏ίʔυ ◈Ҏલॻ͍ͨCSBJOGDLॲཧܥ ⬩ ΦϒδΣΫτࢦͷษڧͷͨΊʹ ઃܭɾ࣮ͨ͠ͷ 25
Slide 26
Slide 26 text
26 CSBJOGDL
Slide 27
Slide 27 text
27
Slide 28
Slide 28 text
CSBJOGDL ◈ͭͷ໋ྩͱόΠτྻ͕͋Δ͚ͩ ⬩ ίϯύΠϥόΠτ ⬩ ͕ͩνϡʔϦϯάશ ◈όΠτྻɾ໋ྩಡΈग़͠Ґஔ ʹ͔͠ׯবͰ͖ͳ͍ ⬩ ໋ྩɺόΠτྻͱ໋ྩಡΈग़͠Ґஔͷ ϑΟϧλͱଊ͑ΒΕΔ 28
Slide 29
Slide 29 text
)FMMP 8PSME 29 +++++++++[>++++++++>+++++++++++> +++++<<<-]>.>++.+++++++..+++.>-.------------. <++++++++.--------.+++.------.--------.>+.
Slide 30
Slide 30 text
CSBJOGDLॲཧܥͲ͏࣮͔ͨ͠ 30 CSBJO'YDL ΤϯτϦʔϙΠϯτ͔Β ιʔείʔυಡΈࠐΜͰ࡞ ໋ྩྻ όΠτྻ ໋ྩ'BDUPSZ ॳظԽ࣌ʹ࡞ ͯ͠อ࣋
Slide 31
Slide 31 text
CSBJOGDLॲཧܥͲ͏࣮͔ͨ͠ 31 CSBJO'YDL ໋ྩྻ όΠτྻ ໋ྩ'BDUPSZ ໋ྩΛ ಡΈग़͠
Slide 32
Slide 32 text
CSBJOGDLॲཧܥͲ͏࣮͔ͨ͠ 32 CSBJO'YDL ໋ྩྻ όΠτྻ ໋ྩ'BDUPSZ ໋ྩΛ ಡΈग़͠ ໋ྩΛ͢ ໋ྩ ໋ྩ0CK ࡞ ໋ྩ0CK Λฦ͢
Slide 33
Slide 33 text
CSBJOGDLॲཧܥͲ͏࣮͔ͨ͠ 33 CSBJO'YDL ໋ྩྻ όΠτྻ ໋ྩ'BDUPSZ ໋ྩ ໋ྩΛ࣮ߦ ߋ৽͞ΕΔ ߋ৽͞ΕΔ
Slide 34
Slide 34 text
CSBJOGDLॲཧܥͲ͏࣮͔ͨ͠ 34 CSBJO'YDL ໋ྩྻ όΠτྻ ໋ྩ'BDUPSZ ࣍ͷ໋ྩΛ ಡΈग़͠
Slide 35
Slide 35 text
35 ͯ͞ɺΑ͏͘४උ͕ ͍·ͨ͠
Slide 36
Slide 36 text
36 ͜ΕΛύλʔϯϚονϯάͰ ॻ͖ͧ͢ʙ
Slide 37
Slide 37 text
37 ʮʜʜʜʜʯ
Slide 38
Slide 38 text
38
Slide 39
Slide 39 text
39 ॻ͖͢ͱ͜Ζ͕ ΄ͱΜͲͳ͍
Slide 40
Slide 40 text
40 ͳͥͩΖ͏͔ʁ
Slide 41
Slide 41 text
΄ͱΜͲͳ͔ͬͨཧ༝ ◈ιʔείʔυจࣈྻͳͷͰɺ จࣈͣͭDBTFdXIFOͰผ͢Εྑ͍ ⬩ ໋ྩҎ֎ͷจࣈਖ਼نදݱͰফͤΔ ◈ଞͷՕॴͷೖྗͯࣗ͢Ͱ࣮͠ ͨΦϒδΣΫτͳͷͰɺ Θ͟Θ͟Ϛονͤ͞ͳͯ͘ Կ͕དྷΔ͔Θ͔Δ 41
Slide 42
Slide 42 text
42 ͦͦ ΠϯλϑΣʔε͕ἧ͑ΒΕΔͱ͜ΖΛ ύλʔϯϚονϯάͰஔ͖͑Δͷ͕ ؒҧ͍ͬͯΔ
Slide 43
Slide 43 text
ύλʔϯϚονϯάͷڧΈ ◈ͲΜͳ͕དྷͯΑ͍ ◈ύλʔϯ͝ͱʹશ͘ผʑͷಈ࡞Λ ͤ͞ΒΕΔ ⬩ ଟॏೖ͕ಈ࡞ͷ෯Λ͛ɺ هड़Λγϯϓϧʹ͢Δ 43
Slide 44
Slide 44 text
ΠϯλϑΣʔεΛἧ͑ΒΕΔঢ়گ ◈ೖྗ͕͋Δఔ༧ଌՄೳ ⬩ ໋ྩͷจࣈ PS໋ྩҎ֎ͷจࣈ ⬩ ʮͲΜͳ͕དྷͯΑ͍ʯػೳʹ߹Θͳ͍ ◈Γ͍ͨ͜ͱ͕௨Γ ⬩ όΠτྻͱ໋ྩྻͷϑΟϧλద༻ ⬩ ʮύλʔϯ͝ͱʹผʑͷಈ࡞͕ͤ͞ΒΕΔʯ ػೳʹ߹Θͳ͍ 44
Slide 45
Slide 45 text
45 צҧ͍Ե
Slide 46
Slide 46 text
46 ·ͯΑɺ͡Ό͋ ύλʔϯϚονϯά͕༗ޮͳঢ়گ ͬͯͳΜͩΖ͏ʁ
Slide 47
Slide 47 text
47 વ ΠϯλϑΣʔε͕ ἧ͑ΒΕͳ͍ঢ়گ
Slide 48
Slide 48 text
ྫʣϘΠεϨίʔμʔ 48
Slide 49
Slide 49 text
ྫʣϘΠεϨίʔμʔ 49 ड͚औΔՄೳੑͷ͋Δ ύλʔϯʹ͍ͭͯهड़
Slide 50
Slide 50 text
ྫʣϘΠεϨίʔμʔ 50
Slide 51
Slide 51 text
ྫʣϘΠεϨίʔμʔ 51 ఆͯ͠ͳ͍ʹ ྫ֎Λ্͛Δ
Slide 52
Slide 52 text
ྫʣϘΠεϨίʔμʔ ◈ಈͰָثͰจࣈྻͰ ରԠՄೳ͔ͭผʑͷಈ࡞ ◈Ϛον͠ͳ͚Εྫ֎Λ্͛Δ ⬩ ༧֎ͷ͔ͬ͠Γ͘ ⬩ OVMM҆શ 52
Slide 53
Slide 53 text
53 ύλʔϯϚονϯάͷڧΈ ೖྗ͕શ͘༧Ͱ͖ͳ͍ͱ͖ ͲΜͳͰରԠՄʹ͢Δ͜ͱͰ ड͚खͷೖྗͷґଘΛബΊΔ
Slide 54
Slide 54 text
54 ଞํ μοΫλΠϐϯάͷڧΈ ͜ͷཪฦ͠
Slide 55
Slide 55 text
55 μοΫλΠϐϯάͷڧΈ ೖྗ͕͋Δఔ༧Ͱ͖Δͱ͖ ʹಈ࡞Λ͠ΌΒͤΔ͜ͱͰ ड͚खͷೖྗͷґଘΛബΊΔ
Slide 56
Slide 56 text
56 ·ͱΊ μοΫλΠϐϯάͱ ύλʔϯϚονϯά ͍ॴ͕ҧ͏
Slide 57
Slide 57 text
57 ͓Θͼ
Slide 58
Slide 58 text
58 λΠτϧٗ
Slide 59
Slide 59 text
2019.07.06 TamaRuby 会議01 CSBJOGDLॲཧܥͰཧղ͢Δ ύλʔϯϚονϯάΛ͔ͭͬͨ ૄ݁߹ͳ࣮ Shu OGAWARA (@expajp)
Slide 60
Slide 60 text
2019.07.06 TamaRuby 会議01 CSBJOGDLॲཧܥͰཧղ͢Δ ύλʔϯϚονϯάΛ͔ͭͬͨ ૄ݁߹ͳ࣮ Shu OGAWARA (@expajp)
Slide 61
Slide 61 text
61 5BNB3VCZձٞͷςʔϚ 3VCZJTUͱͯ͠ͷ
Slide 62
Slide 62 text
62 צҧ͍ͨ͠··$'1Λग़͕ͨ͠ ͓͔͛Ͱ ύλʔϯϚονϯάͷڧΈΛΕͨ
Slide 63
Slide 63 text
63 ٙʹਅ伨ʹ͖߹͑ צҧ͍ͯͯ͠ྑ͍͜ͱ͕͋Δ Fin.
Slide 64
Slide 64 text
ࢀߟ ◈CSBJOGYDLॲཧܥ ⬩ IUUQTHJUIVCDPNFYQBKQCSBJOGYDL ◈ϘΠεϨίʔμʔͷαϯϓϧ ⬩ IUUQTHJUIVCDPNFYQBKQWPJDF@SFDPSEFS 64