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
プロを目指す人の為のRuby入門を学んでつまずいたところ
Search
yoshihiroUeki
June 27, 2020
1
600
プロを目指す人の為のRuby入門を学んでつまずいたところ
どう理解しようとしたか発表します
yoshihiroUeki
June 27, 2020
Tweet
Share
More Decks by yoshihiroUeki
See All by yoshihiroUeki
GitとGitHubの歴史と人間ドラマ
yoshihiroueki
1
890
Featured
See All Featured
Designing on Purpose - Digital PM Summit 2013
jponch
114
6.9k
Navigating Team Friction
lara
183
14k
Producing Creativity
orderedlist
PRO
341
39k
Ruby is Unlike a Banana
tanoku
96
11k
How GitHub (no longer) Works
holman
311
140k
Fight the Zombie Pattern Library - RWD Summit 2016
marcelosomers
230
17k
Gamification - CAS2011
davidbonilla
80
5k
The Cost Of JavaScript in 2023
addyosmani
43
5.8k
How to name files
jennybc
77
98k
Practical Tips for Bootstrapping Information Extraction Pipelines
honnibal
PRO
7
560
Happy Clients
brianwarren
97
6.6k
How STYLIGHT went responsive
nonsquared
94
5.1k
Transcript
ϓϩΛࢦ͢ਓͷͨΊͷ Rubyೖ (νΣϦʔຊ) ΛֶΜͰͭ·͍ͣͨͱ͜Ζ
ࣗݾհ ২ ٛ५ twitter @yoshihiroUeki ϑΟϤϧυϒʔτΩϟϯϓͰ ֶΜͰ·͢
͡Ίʹ
νΣϦʔຊಡΜͰ͍ͯͭ·͍ͣͯຊͱ ʹΒΊͬ͜͢Δࣄ͕͋Γɺ ͜͏Ώ͏ֶͼํΛ͢Εྑ͔ͬͨͳʔͬͱ ࢥͬͨࣄΛൃද͍ͨ͠ͱ͓͍·͢
ൃදͷྲྀΕ ͡Ίʹ ൃදͷྲྀΕͷઆ໌ ͭ·͍ͣͨॴͷઆ໌ ͜͏Ώ͏ֶͼํΛ͢Εྑ͔ͬͨࣄ:ରࡦᶃʙᶉ ·ͱΊ ࠓ͜͜
త νΣϦʔຊΛ͜Ε͔ΒಡΉਓ ࠓಡΜͰΔਓ ͏Ұ෮श͠Α͏ͱ͍ͯ͠Δਓ ಉ͡ॴͰͭ·͍͍ͮͯΔ͔Εͳ͍ͷͰڞ༗ ͠Α͏ͱࢥ͍·ͨ͠
ҙ RubyΛҰ௨ΓֶΜͰ͍Δ͔ͨಘΒ ΕΔࣄগͳ͍͔Ͱ͢
ͭ·͍ͣͨॴ 7ষ 7.4.3 ྫɿɹվࡳػϓϩάϥϜ
ൃදͷεϥΠυʹ͋Δίʔυʹ͍ͭͯ ϓϩΛࢦ͢ਓͷͨΊͷRubyೖͷ7ষɺ 7.4.3ɹྫɿվࡳػϓϩάϥϜͷίʔυΛҾ༻͍ͯ͠·͢ɻ
γφϦΦʁ
ӡ͕Γ͍ͯΔ͔Ͳ͏͔Λผ͢Δ 150ԁͷූΛߪೖ͢Δ കాͰೖ͠ɺࡾࠃͰग़͢Δ ظ͢ΔޮՌ:ग़Ͱ͖ͳ͍
ͦͯࣸ͠ܦ͠·ͨ͠
ຊॻʹ͋Δ γʔέϯεਤΛݟΔ
ࣸܦͨ͠ίʔυͱ γʔέϯεਤ ΈͯΘ͔Βͳ͍
ςετίʔυͰ ΤϥʔͰΔ
Ͳ͏͠Α͏ʙ
͚͕࣌ؒͩա͗Δ
͜͏Ώ͏ֶͼ͔ͨ ͢Εྑ͔ͬͨࣄ
ରࡦᶃ
·ͣຊΛ ࠷ޙ·Ͱ ಡΈΔ
ࣸܦͨ͠ίʔυͷ ޡΓʹؾ͚ͮΔ
ҰΜͰ͍ΔՕॴΛ ΕͯΈΔࣄͰ ؾ͚Δࣄ͕͋Δ
ରࡦᶄ
ࣗͰγʔέϯεਤ Λ͔͍ͯΈΔ
None
গͣͭ͠Πϝʔδ͕ ௫ΜͰ͘Δ
ରࡦᶅ
ίϝϯτ͢Δ
Ҏલ
None
Մಡੑ͋͛ΔͨΊʹ ίϝϯτ߇͚͑ͯͨ Ͳ
ਓʹݟͤͣʹ͕ࣗ ཧղ͢ΔҝͩͬͨΒ ͍͍͔
·ͩश͍ͨͯͷਓ
None
ରࡦᶆ
ෳͷίʔυΛ දࣔͤ͞Δ
Ҏલ
̍ͭ̍ͭ ϑΝΠϧΛ ։͍ͯͨ
None
None
None
Πϝʔδ͕ͭ ͔Ίͳ͍
ෳͷϑΝΠ ϧΛදࣔ
None
ෳදࣔ͢ࣄͰ Ѳ͍͢͠ʂ
ରࡦᶇ
γʔέϯεਤͱ ίʔυΛࢦ͞͠ͳ͕Β ૾্ͷਓʹΛͩ͠ͳ͕ Βઆ໌͢Δ
ࢦΛ͞͠ͳ͕Βઆ໌͢ ΔաఔͰ಄ͷத͕ཧ ͞ΕΔ
Կ͕ཧղͰ͖ͯͳ͍͔ ໌֬ʹͳΔ
ରࡦᶈ
ίʔυΛݱ࣮ੈք ʹӨͤ͞Δ
ྫ͑ͪ͜Βͷ ίʔυ
None
umeda = Gate.new(:umeda) Ͱകా(umeda)ʹվࡳ͕Ͱ͖Δɻ ेࡾ(juso).newͰಉ͡Α͏ʹͰ͖ Δɻ Ticket.newͰ150ԁͷූΛߪೖ ͢Δɻ ͱ͍͏ྲྀΕͰݱ࣮ʹകా͔Βɺ ූΛങͬͯվࡳ௨ͯ͠ɺվࡳΛग़
ΔͱΠϝʔδͯ͠ΈΔɻ
खॻ͖Ͱॻ͍ͨ γʔέϯεਤ
None
ͱ
None
ίʔυΛݟൺͳ͕Β ૾ͯ͠ΈΔͱཧղ ͕ਐΉ
ରࡦऴΘΓ
ͦΕͰཧղᘳͰ ͢Ͷʁ
ͱݴΘΕΔͱࣗ৴ ͳ͍
͚ͲɺςΩετͱʹΒΊͬͯ͜͠ ͍ͨҎલͱൺΕཧղਐΜͩ ͱ͓͍·͢
·ͱΊ
৭ʑͳ͔֯Β ཧղ͢Δͷ େͩͱֶͼ·ͨ͠
ࣗҰਓͩͱ ৭ʑͳ͔֯Βཧղͷํ͢Δൃ ͜͜·Ͱੜ·Εͳ͔͔ͬͨͰ͢
ΞυόΠεΛ͘Εͨ ͕͍ؒͯ͘Εͯ ຊʹײँͰ͢
ऴΘΓ ͝ਗ਼ௌ͋Γ͕ͱ͏ ͍͟͝·ͨ͠