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
初心者PHPerがRuby(+Rails)キメて思うこと
Search
Kyosuke Takenaka
November 03, 2019
Programming
0
1.2k
初心者PHPerがRuby(+Rails)キメて思うこと
富山Ruby会議での発表内容。初心者に向けて、Rubyやろうぜ。というはなし
Kyosuke Takenaka
November 03, 2019
Tweet
Share
More Decks by Kyosuke Takenaka
See All by Kyosuke Takenaka
タガヤスでプログラマ職を得た中学校音楽科教員の話 〜勉強会のすゝめ〜
oratake
0
230
暗黒Shellからエンジニアを守る党 -bashをぶっ壊す-
oratake
0
600
Other Decks in Programming
See All in Programming
MCP with Cloudflare Workers
yusukebe
2
220
rails stats で紐解く ANDPAD のイマを支える技術たち
andpad
1
290
RWC 2024 DICOM & ISO/IEC 2022
m_seki
0
210
htmxって知っていますか?次世代のHTML
hiro_ghap1
0
330
Stackless и stackful? Корутины и асинхронность в Go
lamodatech
0
690
42 best practices for Symfony, a decade later
tucksaun
1
180
たのしいparse.y
ydah
3
120
From Translations to Multi Dimension Entities
alexanderschranz
2
130
バグを見つけた?それAppleに直してもらおう!
uetyo
0
170
StarlingMonkeyを触ってみた話 - 2024冬
syumai
3
270
暇に任せてProxmoxコンソール 作ってみました
karugamo
1
720
Recoilを剥がしている話
kirik
5
6.6k
Featured
See All Featured
CSS Pre-Processors: Stylus, Less & Sass
bermonpainter
356
29k
Exploring the Power of Turbo Streams & Action Cable | RailsConf2023
kevinliebholz
28
4.4k
[Rails World 2023 - Day 1 Closing Keynote] - The Magic of Rails
eileencodes
33
1.9k
RailsConf & Balkan Ruby 2019: The Past, Present, and Future of Rails at GitHub
eileencodes
132
33k
A better future with KSS
kneath
238
17k
Chrome DevTools: State of the Union 2024 - Debugging React & Beyond
addyosmani
2
170
Facilitating Awesome Meetings
lara
50
6.1k
Cheating the UX When There Is Nothing More to Optimize - PixelPioneers
stephaniewalter
280
13k
Being A Developer After 40
akosma
87
590k
How To Stay Up To Date on Web Technology
chriscoyier
789
250k
Adopting Sorbet at Scale
ufuk
73
9.1k
Build your cross-platform service in a week with App Engine
jlugia
229
18k
Transcript
ॳ৺ऀ PHPer ͕ Ruby (+ Rails) Ωϝͯ ࢥ͏͜ͱ @oratake @kyosuketakenaka
Powered by Azusa Colors 2.0
@oratake (Kyosuke, TAKENAKA) • ٶݝ ग़ɾࡏॅ • ٶݝͰதֶߍԻָɾٕज़Պڭһʢ2017.04ʙ 1ؒʣ •
ϗʔϜϖʔδ Ͱ PHPίϐϖ৬ਓʢࢁࢢʣʢ2018.11ʙ 8ϲ݄ʣ - ↑͜ͷ࣌ɺToyama.rbࢀՃ ʢ2019.02ʙʣ • ઋͷWebܥاۀͰΞϧόΠτʢ2019.11.01ʙʣ
͓͢͠Δ͜ͱ (͓͠ͳ͕͖) • ํॅΈͷॳ৺ऀ͕WebΛࢦ͢ྲྀΕ (oratakeͷྫ) • PHP ॳ৺ऀ (8ϲ݄) ͕৮Εͨ
Ruby, Rails ͷॴײ
͓͠Ͱ͖ͳ͍͜ͱ (͔͋͠Βͣ) • Ruby ৗशऀͷ͓؟ڸʹద͏ɺਮͳϕετϓϥΫςΟε • ඞͣ Ruby ΤϯδχΞʹͳΕΔʂඞউઓུʂ •
҉ࠇ Shell ͔ΒΤϯδχΞΛकΔౘɹݟ์ૹ ※ ͖Ε͍ͳϓϩϯϓτɺΧϥʔεΩʔϜඋ͕झຯ
Web ʹͳΖ͏
WebܥΤϯδχΞࢦ͢·Ͱ • υοτΠϯετʔϧ Progate Ͱ͔ͬͨؾʹͳΔ • N༧උߍ (υϫϯΰ)ɹScalaͰαʔϏεͭ͘Δ →
࠳ં • εΫʔϧɺαʔϏε৭ (গ͠՝ۚ) • উຢ݈ଠ@ςοΫܥYouTuber ͓͓·͔ʹWebܥ (͓ʹόοΫΤϯυ) ʹ͍ͭͯ֓ཁΛΔ cf. https://twitter.com/poly_soft • Toyama.rb ͘͘ձͷࢀՃ ࣮ࡍͷΤϯδχΞ͞ΜͱͷؔΘΓ • ઋͷษڧձͰͷLTొஃ cf. https://speakerdeck.com/oratake
Toyama.rb ͘͘ձ • पΓʹٕज़ͷΛͰ͖Δਓ͕͍Δ • ٧·ͬͨͱ͖ʹ૬ஊͰ͖Δ • ूதͯ͘͘͠Ͱ͖Δ • ࣮ࡍʹ
Ruby Λѻ͏ΤϯδχΞͷΛ㘤͚Δ • ϦϞʔτϫʔΫʹ͍ͭͯ㘤͚Δ
͘͘ձʹࢀՃ͠Α͏ (ఏҊ) ຖ݄ ୈ2༵ ৄࡉ connpass Ͱʂ
Ruby ( + Rails )
໔ • PHPͱൺֱͯ͠·͕͢ɺPHPΛdisΔҙਤͳ͍Ͱ͢ɻ • ࠓͷࣄ (Laravel͔͍ͭ·͢) ͨͷͦ͠͏ɻ(·ͩग़ۈ1)
ΧϧνϟʔγϣοΫ • [PHP] ࣗ༝ͳखஈͰॻ͘ɹ[Ruby] ͋ΔఔηΦϦʔ͋Γ • [Ruby] ܕΛڧ͘ҙࣝ͢Δ • ࡉʑͱ͕͍ͨͪ͠
Don’t Repeat YourselfɺcaseʹbrakeཁΒͳ͍ɺreturnॻ͍ͨهԱ͕ͳ͍ if($keigenTax == true) // PHPでよくみる暗黙の型変換
Ruby, Rails • ཕ͕গͳ͍ PHPͷใۄੴࠞަɻRubyք۾όʔδϣϯͷҧ͍ʹҙ͢Δ͙Β͍ʁ cf. ʰPHP ϝʔϧϑΥʔϜʱͷ্Ґ10͕݅উ10% - Qiita
https://qiita.com/rana_kualu/items/7adb59d3f5734789fe31 • ྻૢ࡞ͷϝιου͕όϥΤςΟ๛ (ίʔυهड़ྔ͕গͳ͍) • ք۾ͷΤϯδχΞ͕͍͞͠
Ruby, Rails • ུه͕ଟ͍ ֮͑Εॻ͖͘͢ͳΔͣɻηϛίϩϯΧοίͷྨ͕૬গͳ͘ͳΔɻ • शಘͷૣ͍ஈ֊Ͱ Shell Λ֮͑Δඞཁ͋Γ Δ͜ͱݶΒΕ͍ͯΔͷͰɺ৺ཧతෛ୲ΛΓӽ͑Ε…
ࠇը໘͜Θ͘ͳ͍ɻ • ٻਓ͕݅গͳ͍ Ϟμϯʹ͍ͬͯΔاۀ͞Μͷ͔ͳΓଟ͍ײ͕ͨ͡͠
ͦ͏ͩ Rails νϡʔτϦΞϧɺΖ͏
Rails νϡʔτϦΞϧ • ʘແྉʗ • Ruby Ҏ֎ͷ Web جૅࣝͭ͘ •
Twitter্Ͱ͍ͬͯΔಉࢤ͕ଟ͍ #RailsνϡʔτϦΞϧ • ٧·ͬͯࣅͨΑ͏ͳ࣭͕ggΕ͋Δ
Rails ͨͷ͍͠ʂ • ୈ4ষɹRails ෩ຯͷ Ruby Ruby ͷॳาͱͯ͠ɺΘ͔Γ͍͢ɻจࣈྻૢ࡞ɺྻૢ࡞ɺͳͲ Ruby ͷ͕ղ͖ͨ͘ͳΓɺPaiza
atCoder ͷΛղ͖ʹΔɻ ࣮ࡍɺॳาͷղ͚ΔΑ͏ʹͳͬͨɻ͏Ε͍͠ɻ
ॳֶऀ͚ͩ͜͜Γӽ͍͑ͨ • Shell ͷ߅ײ νʔτγʔτͭͬͯ͘ɺͻͨ͢Β͏ɻ ΩʔϘʔυ͔ΒΕͳ͍ੜ׆ʹ͍ͯ͘͠ɻ ͍͍͢λʔϛφϧɻWin ͳΒ Git bash,
wsltty ͱ͔ cf. λʔϛφϧΛ୳ͯ͠ࡾઍཬ (oratake) - Qiita https://qiita.com/oratake/items/475564f96c562bab2953 • ڥͷߏங ͳΔ͘લྫɺใͷ͋ΔڥͰɹΘ͔Βͳ͘ͳͬͨΒ…→
͘͘ձʹࢀՃ͠Α͏ (ఏҊ) ຖ݄ ୈ2༵ ৄࡉ connpass Ͱʂ
·ͱΊ • Ruby, Rails ք۾ͨͷ͍͠Ͱ͢ɻ͍ͬ͠ΐʹॻ͖·͠ΐ͏ɻ • Rails νϡʔτϦΞϧɺಕ͑͜Δͱͨͷ͘͠ͳ͖ͬͯ·͢ɻ • Toyama.rb
ͨͷ͍͠Ͱ͢ɻ • ࢁ؍ޫɺͨͷ͠ΜͰ͍ͩ͘͞ɻ
͝ਗ਼ௌ͋Γ͕ͱ͏͍͟͝·ͨ͠ʂ தౡᮙ ਫΤϨϕʔλ ༗໊ίϯϏχɹཱࢁαϯμʔόʔυ ொେت ϒϥοΫϥʔϝϯ ࢁమɹϨτϩࢢి