初心者PHPerがRuby(+Rails)キメて思うこと

 初心者PHPerがRuby(+Rails)キメて思うこと

富山Ruby会議での発表内容。初心者に向けて、Rubyやろうぜ。というはなし

Ce441ff2f4db496d5b939f383033aa12?s=128

Kyosuke Takenaka

November 03, 2019
Tweet

Transcript

  1. 2.

    @oratake (Kyosuke, TAKENAKA) • ٶ৓ݝ ग़਎ɾࡏॅ • ٶ৓ݝͰதֶߍԻָɾٕज़Պڭһʢ2017.04ʙ 1೥ؒʣ •

    ϗʔϜϖʔδ԰ Ͱ PHPίϐϖ৬ਓʢ෋ࢁࢢʣʢ2018.11ʙ 8ϲ݄ʣ - ↑͜ͷ࣌ɺToyama.rbࢀՃ ʢ2019.02ʙʣ • ઋ୆ͷWebܥاۀͰΞϧόΠτʢ2019.11.01ʙʣ
  2. 4.

    ͓࿩͠Ͱ͖ͳ͍͜ͱ (͔͋͠Βͣ) • Ruby ৗशऀͷ͓؟ڸʹద͏ɺਮͳϕετϓϥΫςΟε • ඞͣ Ruby ΤϯδχΞʹͳΕΔʂඞউઓུʂ •

    ҉ࠇ Shell ͔ΒΤϯδχΞΛकΔౘɹ੓ݟ์ૹ ※ ͖Ε͍ͳϓϩϯϓτɺΧϥʔεΩʔϜ੔උ͕झຯ
  3. 6.

    WebܥΤϯδχΞ໨ࢦ͢·Ͱ • υοτΠϯετʔϧ ΍ Progate Ͱ෼͔ͬͨؾʹͳΔ • N༧උߍ (υϫϯΰ)ɹScalaͰαʔϏεͭ͘Δ →

    ࠳ં • εΫʔϧɺαʔϏε෺৭ (গ͠՝ۚ) • উຢ݈ଠ@ςοΫܥYouTuber ͓͓·͔ʹWebܥ (͓΋ʹόοΫΤϯυ) ʹ͍ͭͯ֓ཁΛ஌Δ cf. https://twitter.com/poly_soft • Toyama.rb ΋͘΋͘ձ΁ͷࢀՃ ࣮ࡍͷΤϯδχΞ͞ΜͱͷؔΘΓ • ઋ୆ͷษڧձͰͷLTొஃ cf. https://speakerdeck.com/oratake
  4. 11.

    ΧϧνϟʔγϣοΫ • [PHP] ࣗ༝ͳखஈͰॻ͘ɹ[Ruby] ͋Δఔ౓ηΦϦʔ͋Γ • [Ruby] ܕΛڧ͘ҙࣝ͢Δ • ࡉʑͱ͕͍ͨͪ͠

    Don’t Repeat YourselfɺcaseʹbrakeཁΒͳ͍ɺreturnॻ͍ͨهԱ͕ͳ͍ if($keigenTax == true) // PHPでよくみる暗黙の型変換
  5. 12.

    Ruby, Rails • ஍ཕ͕গͳ͍ PHPͷ৘ใ͸ۄੴࠞަɻRubyք۾͸όʔδϣϯͷҧ͍ʹ஫ҙ͢Δ͙Β͍ʁ cf. ʰPHP ϝʔϧϑΥʔϜʱͷ্Ґ10͕݅উ཰10% - Qiita

    https://qiita.com/rana_kualu/items/7adb59d3f5734789fe31 • ഑ྻૢ࡞ͷϝιου͕όϥΤςΟ๛෋ (ίʔυهड़ྔ͕গͳ͍) • ք۾ͷΤϯδχΞ͕΍͍͞͠
  6. 15.

    Rails νϡʔτϦΞϧ • ʘແྉʗ • Ruby Ҏ֎ͷ Web جૅ஌ࣝ΋ͭ͘ •

    Twitter্Ͱ૸͍ͬͯΔಉࢤ͕ଟ͍ #RailsνϡʔτϦΞϧ • ٧·ͬͯ΋ࣅͨΑ͏ͳ࣭໰͕ggΕ͹͋Δ
  7. 17.

    ॳֶऀ͸͚ͩ͜͜৐Γӽ͍͑ͨ • Shell ΁ͷ఍߅ײ νʔτγʔτͭͬͯ͘ɺͻͨ͢Β࢖͏ɻ ΩʔϘʔυ͔Β཭Εͳ͍ੜ׆ʹ͍ͯ͘͠ɻ ࢖͍΍͍͢λʔϛφϧɻWin ͳΒ Git bash,

    wsltty ͱ͔ cf. λʔϛφϧΛ୳ͯ͠ࡾઍཬ (oratake) - Qiita https://qiita.com/oratake/items/475564f96c562bab2953 • ؀ڥͷߏங ͳΔ΂͘લྫɺ৘ใͷ͋Δ؀ڥͰɹΘ͔Βͳ͘ͳͬͨΒ…→