Upgrade to Pro — share decks privately, control downloads, hide ads and more …

新規プロジェクトのリードエンジニアになるために

Kaoru Hotate
December 14, 2019

 新規プロジェクトのリードエンジニアになるために

2019/12/14 平成Ruby会議#01 登壇資料

Kaoru Hotate

December 14, 2019
Tweet

More Decks by Kaoru Hotate

Other Decks in Programming

Transcript

  1. 6 ޷͖ͳՊ໨ ࢉ਺ɹಛʹ৔߹ͷ਺ ‣ ܾ·ͬͨղ͖ํɾߟ͑ํ͕͋Δʢύλʔϯʣ ‣ ύζϧײ֮Ͱɺʮ͋ͯ͸ΊΔʯʮ͘Έ͋ΘͤΔʯ ύλʔϯʹ͍࣋ͬͯͨ͘ΊʹʮͻΒΊ͖ʯʮ࣮ݧʯΛߦ͏ ࣗ෼ͳΓͷύλʔϯɾࢦ਑Λߏங͢Δ ‣

    ͨ͘͞Μͷ໰୊Λղ͍ͯɺ ৽͍͠ύλʔϯΛֶͿɾ࢖͍ํΛशಘ͢Δ ࢖͍͜ͳͨ͠ύλʔϯͷྔɺ͍࣋ͬͯΔࢦ਑ͷਫ਼౓ͷߴ͕͞ɺ ૉૣ͘ਖ਼֬ͳճ౴Λಋ͘ ๻ͷੲ࿩͠·͢
  2. ϦʔυΤϯδχΞͷ͓࢓ࣄ 10 ‣ ॳظஈ֊ʢνʔϜϝϯόʔ͕ಈ͖ग़͢લʹ΍Δ͜ͱʣ ‣ SBJMTOFX ‣ ։ൃϧʔϧͷ࡞੒ ‣ ίʔσΟϯάن໿

    ‣ ੩తղੳνΣοΫͷϧʔϧ ‣ ϥΠϒϥϦΞοϓσʔτͷස౓ νʔϜϝϯόʔ͕ಈ͖ग़͢લʹ͜͜·ͰऴΘΒͳ͍ͱɺ ͋ͱͰख໭Γ͕ൃੜ͢Δέʔε͕ଟ͍  SBJMTUFNQMBUF  ࣗ෼ͳΓͷ ίʔσΟϯάن໿
  3. ϦʔυΤϯδχΞͷ͓࢓ࣄ 11 ‣ தظஈ֊ʢνʔϜϝϯόʔͱ։ൃதʹ΍Δ͜ͱʣ ‣ ઃܭɾػೳ։ൃ ‣ ෛ࠴ʹͳΓͮΒ͍ίʔυ΁ ϨϏϡʔ΍ϦϑΝΫλϦϯά ‣

    ͋ͱ͔Βࢀըͨ͠ਓʹ ఻ୡͰ͖Δ࢓૊Έͮ͘Γ  ϦϑΝΫλϦϯά ύλʔϯͷ໌จԽ ෛ࠴ʹͳΓͮΒ͍ίʔυΛߏங͢ΔͨΊͷ࢓૊Έͮ͘Γ͕ඞཁ
  4. SBJMTUFNQMBUF 13 UFNQMBUFSC 3BJMTΨΠυIUUQTSBJMTHVJEFTKQSBJMT@BQQMJDBUJPO@UFNQMBUFTIUNMࢀর generate(:scaffold, "person name:string") route "root to:

    'people#index'" rails_command("db:migrate") after_bundle do git :init git add: "." git commit: %Q{ -m 'Initial commit' } end $ rails new project_name -m path/to/template.rb
  5. SBJMTUFNQMBUF 15 Rails.application.configure do (Ұ෦লུ) # N + 1͸໰౴ແ༻Ͱ500ը໘ʹભҠͤ͞Δ config.after_initialize

    do Bullet.enable = true Bullet.console = true Bullet.rails_logger = true Bullet.raise = true end end DPOGJHFOWJSPONFOUTEFWFMPQNFOUSC # Install JavaScript dependencies system('bin/yarn') CJOTFUVQSC / ͕͋ΔͱʹͳΔઃఆΛ௥Ճ SBJMTOFXͰࣗಈͰ࡞ΒΕΔ CJO഑ԼͷઃఆϑΝΠϧΛमਖ਼
  6. ࣗ෼ͳΓͷίʔσΟϯάن໿Λ࡞͓ͬͯ͘ 19 ωʔϜεϖʔεɾΫϥε໊Λ࠷ॳʹ౷Ұ͓͖͍ͯͨ͠ ‣ 3BJMTϓϩδΣΫτ͸ɺͨ͘͞ΜͷΫϥε͕Ͱ͖΍͍͢ ‣ ౷Ұ໋໊ͨ͠ϧʔϧ͕͋Δͱɺ ໊લ෇͚Λߟ͑Δίετ͕ݮΔɻ ·ͨɺྨࣅͷҙຯΛ࣋ͭΫϥεΛ୳͠΍͍͢ ‣

    Ϋϥε໊Λݟ͚ͨͩͰɺத਎Λ༧૝Ͱ͖Δ )PHF$SFBUPSΫϥε%#ʹอଘ͢Δ )PHF'PSNΫϥεWBMJEBUJPO΍CVJME·ͰͰอଘ͸͠ͳ͍  ࢀߟIUUQTHJTUHJUIVCDPNIPUBUFLBPSVGBEEGFFBG ҎԼͷ0CKFDUͷϧʔϧΛهࡌͯ͠·͢ 7JFX0CKFDU $PMMFDUPS0CKFDU 2VFSZ0CKFDU 4FSWJDF0CKFDU $SFBUPS6QEBUFS0CKFDU 'PSN0CKFDU 7BMJEBUF0CKFDU 7BMVF0CKFDU 1PMJDZ0CKFDU
  7. ϦϑΝΫλϦϯάύλʔϯͷ໌จԽ 21 ϦϑΝΫλϦϯάύλʔϯͷྫ ‣ DPODFSOͷ࢖͍ॴͱআڈ͢Δํ๏ !XJMMOFU͞Μʮ$PODFSOTBCPVU$PODFSOTʯ IUUQTTQFBLFSEFDLDPNXJMMOFUDPODFSOTBCPVUDPODFSOT ‣ 'PSN0CKFDUΛ࢖͏ํ๏ ϝυϐΞ։ൃϒϩάʮGPSNPCKFDUΛ࢖ͬͯΈΑ͏ʯ

    IUUQTUFDINFEQFFSDPKQFOUSZ ‣ 'BU.PEFMΛ୤٫͢Δํ๏ ʮ'BU.PEFMʹରॲ͢ΔͭͷϦϑΝΫλϦϯάύλʔϯʯ IUUQTTQFBLFSEFDLDPNIPUBUFLBPSVGBUNPEFMOJEVJDIVTVSVUVGBMTFSJIVBLVUBSJOHVQBUBO