Upgrade to PRO for Only $50/Year—Limited-Time Offer! 🔥

A Practitioner's Journey from Ruby 1.8 to Present

Koichi ITO
September 09, 2023

A Practitioner's Journey from Ruby 1.8 to Present

Koichi ITO

September 09, 2023
Tweet

More Decks by Koichi ITO

Other Decks in Programming

Transcript

  1. ,PJDIJ*50&4. *OD A Practitioner's Journey from Ruby 1.8 to Present

    Have you been able to craft your job to be fun? େࡕ3VCZձٞ  4BU ϋʔτϯϗςϧ৺ࡈڮদ෩ϗʔϧ
  2. େࡕ3VCZձٞͷ&4.ϝϯόʔ 4 Q FBLFS @junk0612 4 Q FBLFS @koic -5

    @maimux2x 4 UB f @haruguchiyuma " UUFOEFF @fugakkbn " UUFOEFF @nsgc " UUFOEFF @kakutani ϑΣϩʔ
  3. w ೔ຊ3VCZΧϯϑΝϨϯε͔Βࠓ೥ͷ 3VCZ,BJHJ·Ͱ͢΂ͯεϙϯαʔͯ͠Δ 
 ੈք།Ұͷاۀ ެืͷͳ͍ আ͘  w 3VCZ,BJHJ

    -5          -5    ొஃഐग़ w ೔ຊࠃ಺Ͱ͸34QFDͱ)BNMॳظͷಋೖاۀ 3VCZͱ&4. *OD
  4. w key => valueʹՃ͑key: valueͷ)BTIه๏ಋೖ w ྩ࿨೥ ࣌୅͸3VCZEFW ʹ 


    ʮ3VCZͷ)BTIه๏ʯͱίϝϯτ͢Δ͜ͱ͕ʂ w ΩʔϫʔυҾ਺͕ೖͬͨͷ͸3VCZ͔Β͕ͩɺϝιο υҾ਺ͷ࠷ޙͷϋογϡ͕ຊ౰ʹͦΕͬΆ͘ w ౰࣌ࢍ൱྆࿦ͷlambdaͷ->ه๏͕ೖͬͨ w จࣈͱه߸ͷࣝผௐ࿨͕ઈົ ΞϓϦίʔυ͕ݱ୅తͳݟͨ໨ʹ
  5. w 3VCZҎલͷจࣈྻ͸όΠτͷγʔέϯε w ⤴Ͱଟ͘ͷEncoding::CompatibilityErrorͱରቂ w # encoding: UTF-8ϚδοΫίϝϯτʹΑΔ 
 εΫϦϓτΤϯίʔσΟϯάͷࢦఆͱ

    String#force_encodingͳͲʹΑΔετϦʔϜ 
 ΤϯίʔσΟϯάม׵Ͱ৐Γ੾ͬͨΑ͏ͳ w ͓͔͛Ͱ΁ͷΞοϓάϨʔυ͸೉͘͠ͳ͔ͬͨʁ ΞϓϦίʔυ΁ͷඇޓ׵ աڈ࠷େ
  6. w 3VCZ(FNT͕ඪ४ఴ෇ʹͳΔ w ruby setup.rbίϚϯυʹΑΔΠϯετʔϧ΍ 
 apt-get install railsͱ͍͏gem؅ཧͱࠞ ͥΔͳةݥͷ౫ଡ

    w ͜ͷޙ͘Β͍ʹ3BJMTʹ#VOEMFS͕౷߹͞Εͯ ύοέʔδ؅ཧͷΤίγεςϜ͕҆ఆͨ͠ ܥ࠷ॳͷ҆ఆόʔδϣϯ