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
610
プロを目指す人の為のRuby入門を学んでつまずいたところ
どう理解しようとしたか発表します
yoshihiroUeki
June 27, 2020
Tweet
Share
More Decks by yoshihiroUeki
See All by yoshihiroUeki
GitとGitHubの歴史と人間ドラマ
yoshihiroueki
1
910
Featured
See All Featured
10 Git Anti Patterns You Should be Aware of
lemiorhan
PRO
656
59k
Building Flexible Design Systems
yeseniaperezcruz
327
38k
Refactoring Trust on Your Teams (GOTO; Chicago 2020)
rmw
32
2.7k
RailsConf & Balkan Ruby 2019: The Past, Present, and Future of Rails at GitHub
eileencodes
132
33k
XXLCSS - How to scale CSS and keep your sanity
sugarenia
247
1.3M
GraphQLの誤解/rethinking-graphql
sonatard
67
10k
Statistics for Hackers
jakevdp
796
220k
No one is an island. Learnings from fostering a developers community.
thoeni
19
3k
Visualization
eitanlees
146
15k
I Don’t Have Time: Getting Over the Fear to Launch Your Podcast
jcasabona
29
2k
Java REST API Framework Comparison - PWX 2021
mraible
28
8.3k
Automating Front-end Workflow
addyosmani
1366
200k
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
ίʔυΛݟൺͳ͕Β ૾ͯ͠ΈΔͱཧղ ͕ਐΉ
ରࡦऴΘΓ
ͦΕͰཧղᘳͰ ͢Ͷʁ
ͱݴΘΕΔͱࣗ৴ ͳ͍
͚ͲɺςΩετͱʹΒΊͬͯ͜͠ ͍ͨҎલͱൺΕཧղਐΜͩ ͱ͓͍·͢
·ͱΊ
৭ʑͳ͔֯Β ཧղ͢Δͷ େͩͱֶͼ·ͨ͠
ࣗҰਓͩͱ ৭ʑͳ͔֯Βཧղͷํ͢Δൃ ͜͜·Ͱੜ·Εͳ͔͔ͬͨͰ͢
ΞυόΠεΛ͘Εͨ ͕͍ؒͯ͘Εͯ ຊʹײँͰ͢
ऴΘΓ ͝ਗ਼ௌ͋Γ͕ͱ͏ ͍͟͝·ͨ͠