Save 37% off PRO during our Black Friday Sale! »

Railsを仕事にする会社で新卒が1年間学んだこと

Afdb8e40066f7939ff82727bc0c892ce?s=47 Junichi Kobayashi
August 05, 2017
1.8k

 Railsを仕事にする会社で新卒が1年間学んだこと

Afdb8e40066f7939ff82727bc0c892ce?s=128

Junichi Kobayashi

August 05, 2017
Tweet

Transcript

  1. 3BJMTΛ࢓ࣄʹ͢ΔձࣾͰ
 ৽ଔ͕೥ֶؒΜͩ͜ͱ Ұਓલͷ3BJMTϓϩάϥϚʵʹͳΔͨΊͷʰ֊ஈʱͷొΓํ ͗Μ͟3VCZձٞ גࣜձࣾΈΜͳͷ΢ΣσΟϯά༷ձٞࣨ  4BU גࣜձࣾӬ࿨γεςϜϚωδϝϯτΞδϟΠϧࣄۀ෦ খྛ७Ұ !KVOL

  2. খྛ७Ұ !KVOL

  3. ೥໨ چ৽ଔࢯ

  4. IUUQSVCZLBJHJPSHTQPOTPST

  5. IUUQTUXJUUFSDPNKVOLTUBUVT

  6. IUUQTUXJUUFSDPNKVOLTUBUVT

  7. None
  8. 3BJMTΛ࢓ࣄʹ͢ΔձࣾͰ
 ৽ଔ͕೥ֶؒΜͩ͜ͱ Ұਓલͷ3BJMTϓϩάϥϚʵʹͳΔͨΊͷʰ֊ஈʱͷొΓํ ͗Μ͟3VCZձٞ גࣜձࣾΈΜͳͷ΢ΣσΟϯά༷ձٞࣨ  4BU גࣜձࣾӬ࿨γεςϜϚωδϝϯτΞδϟΠϧࣄۀ෦ খྛ७Ұ !KVOL

  9. None
  10. None
  11. ର৅ֶशΛ࢝Ίͨ͹͔Γͷਓɺ΋ ͘͠͸ͦΕΛҭͯΔཱ৔ͷਓ ৽ଔͷཱ৔͔ΒͲΜͳ͜ͱΛֶͼɺ ͲΜͳ͜ͱΛߟ͍͑ͯͨͷ͔Λ఻ ͑ɺ৘ใڞ༗͍ͨ͠ ໨త

  12. ‣ +BWB $-*ɺ"OESPJE  ‣ 9UFYU ݚڀ  ‣ 9UFOE

    ݚڀ  ‣ 3VCZ3BJMT͸ܦݧͳ͠ ೖࣾ࣌ͷεΩϧ
  13. ‣ +BWB $-*ɺ"OESPJE  ‣ 9UFYU ݚڀ  ‣ 9UFOE

    ݚڀ  ‣ 3VCZ3BJMT͸ܦݧͳ͠ ೖࣾ࣌ͷεΩϧ ͍ΘΏΔʮେܕ৽ਓʯͰ͸ͳ͍
  14. ϓϩδΣΫτͷਪҠ     ࣾ಺Ͱجૅֶश ಉҊ݅ʹΞαΠϯ डୗҊ݅Ͱ0+5

  15. ϓϩδΣΫτͷਪҠ     ࣾ಺Ͱجૅֶश ಉҊ݅ʹΞαΠϯ डୗҊ݅Ͱ0+5 ‣3BJMTνϡʔτϦΞϧ ‣42-υϦϧ

    ‣3VCZೝఆࢼݧ
  16. ϓϩδΣΫτͷਪҠ     ࣾ಺Ͱجૅֶश ಉҊ݅ʹΞαΠϯ डୗҊ݅Ͱ0+5 ؆୯ͳϝοηʔδͷमਖ਼͔Β
 ঃʑʹϋʔυϧ্͕͕͍ͬͯ͘

  17. ϓϩδΣΫτͷਪҠ     ࣾ಺Ͱجૅֶश ಉҊ݅ʹΞαΠϯ डୗҊ݅Ͱ0+5 ‣ 13ϕʔεͰͷϨϏϡʔ

    ‣ ݟੵΓ΁ͷࢀՃ ‣ ސ٬ͱͷ΍ΓͱΓ
  18. ͓ੈ࿩ʹͳΓ·ͨ͠ !LPJD !ULVOPV !TVHJOPZ !qBEB@BVYW !BJLZP !OTHD !PKJSZ !NVSZPJNQM !TXBNQ

    !IJTBT Special Thanks
  19. ਺ࣈͰݟΔεςʔλε $ git shortlog -s 371 Junichi Kobayashi

  20. ਺ࣈͰݟΔεςʔλε $ git shortlog -s 371 Junichi Kobayashi DPNNJUE

  21. ਺ࣈͰݟΔεςʔλε $ git shortlog -s --no-merges 337 Junichi Kobayashi

  22. ࠓ೔͓࿩͢͠Δ͜ͱ ‣ ॳΊͯΈͨ3VCZͷ໘ന͞ ‣ 3BJMTʹૣ͘৐ΔͨΊʹ ‣ 13Ͱߟ͓͑ͯ͘ͱ͍͍͜ͱ ‣ (JUͰίʔυ֎ͷҙਤΛ఻͑Δ

  23. ࠓ೔͓࿩͢͠Δ͜ͱ ‣ ॳΊͯΈͨ3VCZͷ໘ന͞ ‣ 3BJMTʹૣ͘৐ΔͨΊʹ ‣ 13Ͱߟ͓͑ͯ͘ͱ͍͍͜ͱ ‣ (JUͰίʔυ֎ͷҙਤΛ఻͑Δ

  24. ‣ ϝιουݺͼग़͠ʹ
 Χοί͕ͳͯ͘΋ྑ͍ ‣ ໊લʹʮ ʯ͕࢖͑Δ ‣ σϑΥϧτҾ਺ 3VCZͷ໘ന͞

  25. ϝιουͷΧοί def search_books(genre) @books = Book.where(genre: genre) render 'book/index', books:

    @books end
  26. ϝιουͷΧοί def search_books(genre) @books = Book.where(genre: genre) render 'book/index', books:

    @books end
  27. ϝιουͷΧοί def search_books(genre) @books = Book.where(genre: genre) render 'book/index', books:

    @books end ϝιουݺͼग़͠ ࣜ ໋ྩݺͼग़͠ จ
  28. ໊લʹʮ ʯ ‣ ͻͱ໨ͷ৘ใྔ͕ͱͯ΋ଟ͍ w ͸ݺͼग़͠ʹ஫ҙ͢Δ΂͖ w ͸ਅཧ஋Λද͢

  29. σϑΥϧτҾ਺ ‣ ݺͼग़͠ଆͰҾ਺ͷ༗ແΛબ΂Δ w +BWBͰ͸Φʔόʔϩʔυ w σϑΥϧτҾ਺ͷ਺͚ͩ
 ϝιουએݴ͕ඞཁ

  30. ‣ ʮॻ͘ʯ͜ͱ͕ͱͯ΋ָ w ୹͍ w ݟ΍͍͢ w ָ͍͠ 3VCZͷ໘ന͞

  31. ࠓ೔͓࿩͢͠Δ͜ͱ ‣ ॳΊͯΈͨ3VCZͷ໘ന͞ ‣ 3BJMTʹૣ͘৐ΔͨΊʹ ‣ 13Ͱߟ͓͑ͯ͘ͱ͍͍͜ͱ ‣ (JUͰίʔυ֎ͷҙਤΛ఻͑Δ

  32. ‣ 3BJMTXBZΛ஌Δ w ஌Βͳ͍ͱ৐Εͳ͍ w ৐Εͳ͍ͱ֎ΕΒΕͳ͍ w ܕഁΓʺܗແ͠ 3BJMTʹૣ͘৐Δ

  33. ‣ ಡΜͩຊΛ؅ཧͰ͖ɺຊʹײ૝Λ ॻ͚ΔγεςϜΛߟ͑Δ ‣ ͢΂ͯͷຊͷଞʹɺಡΜͩຊ΍ײ ૝Λॻ͍ͨຊͷҰཡΛग़͍ͨ͠ ‣ ϦιʔεɾϧʔςΟϯάઃܭΛͲ ͏͢Δ͔ʁ ྫຊͷײ૝

  34. ࣗ෼ͷઃܭ resources :books do collection do get 'read' get 'commented'

    end end
  35. ΋ΒͬͨϨϏϡʔ Ϗϡʔ͕ಉ͡ͳͷͰɺ ίϯτϩʔϥ΋ಉ͡Ͱ͍͍͔ͱ ࢥͬͯ͜ͷ࣮૷ʹ͠·ͨ͠ ࣗ෼͸ڧ͍ཧ༝͕ͳ͍ݶΓ͸ ίϯτϩʔϥ෼ׂ೿Ͱ͢ !PKJSZ

  36. ࢀߟจݙ IUUQQPTUEDDIPXEIIPSHBOJ[FTIJTSBJMTDPOUSPMMFST

  37. %))TBZT ࣗ෼ͷ࡞ͬͨίϯτϩʔϥͷঢ়ଶΛչ ΍Ήͷ͸ܾ·ͬͯɺ࡞ͬͨίϯτϩʔ ϥͷ਺͕গͳ͗ͨ࣌͢Ͱ͢ɻଟ͘ͷॲ ཧΛ೚ͤΑ͏ͱ͗ͯ͢͠͠·͏ΜͰ͢ɻ ͦ͜Ͱ#BTFDBNQͰ͸ɺ͋Δఔ౓ ཧʹ͔ͳͬͨαϒϦιʔε͕͋Ε͹ɺ ຖճίϯτϩʔϥΛ෼ׂ͍͖ͯ͠·͢ɻ

  38. ࣗ෼ͷઃܭ resources :books do collection do get 'read' get 'commented'

    end end
  39. վྑޙͷઃܭ resources :books do resource :read, only: %i(show) resource :commented,

    only: %i(show) end
  40. ‣ 3BJMTXBZΛ஌Δ w 3BJMTXBZʹ৐Δͱɺ
 ཁٻΛγϯϓϧʹ
 ࣮૷Ͱ͖Δ 3BJMTʹૣ͘৐Δ

  41. ࠓ೔͓࿩͢͠Δ͜ͱ ‣ ॳΊͯΈͨ3VCZͷ໘ന͞ ‣ 3BJMTʹૣ͘৐ΔͨΊʹ ‣ 13Ͱߟ͓͑ͯ͘ͱ͍͍͜ͱ ‣ (JUͰίʔυ֎ͷҙਤΛ఻͑Δ

  42. 13Ͱߟ͑Δ͜ͱ ‣ ˓˓͞ΜͳΒͲ͏ߟ͑Δʁ ‣ ʮͱΓ࣮͋͑ͣ૷ʯͷݴ͍༁ ‣ Θ͔Βͳ͍͜ͱ͸ૉ௚ʹฉ͘

  43. 13Ͱߟ͑Δ͜ͱ ‣ ˓˓͞ΜͳΒͲ͏ߟ͑Δʁ ‣ ʮͱΓ࣮͋͑ͣ૷ʯͷݴ͍༁ ‣ Θ͔Βͳ͍͜ͱ͸ૉ௚ʹฉ͘

  44. ˓˓͞ΜͳΒʜʜ ‣ ϨϏϡʔ͸ຖ೔ͨ͘͞Μड͚Δ ‣ ͠͹Β͘ड͚ଓ͚͍ͯΔͱɺ͋Δ ਓ͔ΒͷϨϏϡʔʹڞ௨ͨ͠ࢹ఺ ͕͋Δ͜ͱʹؾͮ͘

  45. ͨͱ͑͹ !LPJD ໊લ෇͚͕ ద੾Ͱͳͦ͞͏ɻ ͜Μͳ୯ޠ͸ʁ ͜ͷॻ͖ํ͸
 %3:͡Όͳ͍ͷͰ ݟ௚ͦ͏

  46. ͨͱ͑͹ !TVHJOPZ ͜ͷΠϯελϯε
 ෆཁͰ͸ʁ ϦϑΝΫλϦϯά
 ͠·͠ΐ͏ ΫΤϦ͕஗͍ͷͰ ࣮ߦܭըΛݟͯΈͯ

  47. !ULVOPV ͨͱ͑͹ ͜ͷϝιου͸ ͋ͬͪͰ΋࢖ΘΕͯ ͍ΔͷͰ ֬ೝ͕ඞཁͦ͏ ผͷ৔ॴͰ ࣅͨॲཧΛ͍ͯ͠ΔͷͰ ࢀߟʹͰ͖ͦ͏

  48. ˓˓͞ΜͳΒʜʜ ‣ ͜ͷࢹ఺Λར༻͠ɺ
 13Λग़͢લʹʮͦͷਓʹͳΓ ͖ͬͯʯϨϏϡʔͯ͠ΈΔ ‣ ࣗ෼͕13Λग़͢લʹ΋༗ޮͩ͠
 ઌഐͷ13ΛݟΔͱ͖ʹ΋༗ޮ

  49. ˓˓͞ΜͳΒʜʜ ‣ ࣗ෼ͳΓͷཧ༝Λ࣋ͬͯ13Λ
 ϨϏϡʔ͢Δͷ͸ͳ͔ͳ͔೉͍͠ ‣ લड͚ͨϨϏϡʔΛ׆͔ͯ͠
 ʮਐݚθϛঢ়ଶʯΛ࡞Δ

  50. 13Ͱߟ͑Δ͜ͱ ‣ ˓˓͞ΜͳΒͲ͏ߟ͑Δʁ ‣ ʮͱΓ࣮͋͑ͣ૷ʯͷݴ͍༁ ‣ Θ͔Βͳ͍͜ͱ͸ૉ௚ʹฉ͘

  51. ͱΓ͋͑ͣͷݴ͍༁ ‣ ׳Εͯ͘ΔͱɺͩΜͩΜ࣮૷Λ
 ͺͬͱࢥ͍ͭ͘͜ͱ͕૿͑ͯ͘Δ ‣ ࢥ͍͍͔ͭͨΒͱΓ࣮͋͑ͣ૷
 ͯ͠ΈΔ ຊ౰͸Α͘ͳ͍

  52. ͱΓ͋͑ͣͷݴ͍༁ ‣ Ͱ͖ͨ΋ͷ͸࢓ํ͕ͳ͍ͷͰ
 ͤΊͯ13Λग़͢લʹଞͷखஈʹ ͍ͭͯߟ͑ͯΈΔ ‣ ͞΋ࣄલʹߟ͍͔͑ͯͨͷΑ͏ʹ 13ͷίϝϯτʹॻ͍͓ͯ͘

  53. 13Ͱߟ͑Δ͜ͱ ‣ ˓˓͞ΜͳΒͲ͏ߟ͑Δʁ ‣ ʮͱΓ࣮͋͑ͣ૷ʯͷݴ͍༁ ‣ Θ͔Βͳ͍͜ͱ͸ૉ௚ʹฉ͘

  54. Θ͔Βͳ͍͜ͱΛฉ͘ ‣ Ұݟमਖ਼ͯ͠΋มΘΒͳͦ͞͏ͳ
 ϨϏϡʔ͕ͭ͘͜ͱ͕͋Δ ‣ ʮͳͥ͜ͷमਖ਼Λ͢΂͖ͳͷ͔ʯ
 ͱ͍͏ཧ༝͕͋Δ͸ͣͳͷͰ
 ฉ͍ͯΈΔ

  55. Θ͔Βͳ͍͜ͱΛฉ͘ ‣ ࠷ॳ͸ӏವΈʹͯ͠΋͍͍ ‣ ׳Ε͖ͯͨΒʮࣗ෼͕͜͏ॻ͍ͨ ཧ༝ʯͱηοτͰฉ͍ͯΈΔͱ
 ͦͷཧ༝ʹ͍ͭͯ΋ϨϏϡʔ͕΋ Β͑Δ

  56. ࠓ೔͓࿩͢͠Δ͜ͱ ‣ ॳΊͯΈͨ3VCZͷ໘ന͞ ‣ 3BJMTʹૣ͘৐ΔͨΊʹ ‣ 13Ͱߟ͓͑ͯ͘ͱ͍͍͜ͱ ‣ (JUͰίʔυ֎ͷҙਤΛ఻͑Δ

  57. (JUͰҙਤΛ఻͑Δ ‣ ίϛοτৄࡉʹ͸8IBU 8IFO8IP)PX 8IFSF͕ࡌΔ ‣ ͕ͨͬͯ͠ɺίϛοτϝοηʔδ ʹ͸8IZΛॻ͘ඞཁ͕͋Δ

  58. ͨͱ͑͹ commit f4227bf20a16a1d688afc24cf0038e2f98905dd4 Author: Junichi Kobayashi <junk0612@example.com> Date: Tue Jul

    25 13:19:01 2017 +0900 Remove comments
  59. commit f4227bf20a16a1d688afc24cf0038e2f98905dd4 Author: Junichi Kobayashi <junk0612@example.com> Date: Tue Jul 25

    13:19:01 2017 +0900 Remove comments ͨͱ͑͹ ͳͥίϝϯτΛ
 ফͨ͠ͷ͔ʁ
  60. ͨͱ͑͹ commit f4227bf20a16a1d688afc24cf0038e2f98905dd4 Author: Junichi Kobayashi <junk0612@example.com> Date: Tue Jul

    25 13:19:01 2017 +0900 Remove unnecessary comments
  61. commit f4227bf20a16a1d688afc24cf0038e2f98905dd4 Author: Junichi Kobayashi <junk0612@example.com> Date: Tue Jul 25

    13:19:01 2017 +0900 Remove unnecessary comments ͨͱ͑͹ ͳͥίϝϯτ͸
 ෆཁͳͷ͔ʁ
  62. ͨͱ͑͹ commit f4227bf20a16a1d688afc24cf0038e2f98905dd4 Author: Junichi Kobayashi <junk0612@example.com> Date: Tue Jul

    25 13:19:01 2017 +0900 Remove unnecessary comments ৼΔ෣͍ͱ߹͍ͬͯͳ͍͏͑ɺίʔυΛಡΊ͹
 ༰қʹཧղͰ͖ΔͨΊɺίϝϯτΛ࡟আ͢Δ
  63. ͨͱ͑͹ commit f4227bf20a16a1d688afc24cf0038e2f98905dd4 Author: Junichi Kobayashi <junk0612@example.com> Date: Tue Jul

    25 13:19:01 2017 +0900 Remove unnecessary comments ৼΔ෣͍ͱ߹͍ͬͯͳ͍͏͑ɺίʔυΛಡΊ͹
 ༰қʹཧղͰ͖ΔͨΊɺίϝϯτΛ࡟আ͢Δ
  64. ҰํͰ ‣ ίϛοτϝοηʔδ͸
 ௕͚Ε͹͍͍Θ͚Ͱ͸ͳ͍ w 3FNPWFUSBJMJOH XIJUFTQBDFͰे෼఻ΘΔ

  65. Ͳ͏͢Δ΂͖͔ʁ ‣ ࣗ෼ͷੑ֨Λߟྀ͢Δ w ࣗ෼͸ল͖͗͢ΔλΠϓͳͷͰ
 ͍ͯͶ͍ʹॻ͘͜ͱΛ৺͕͚ͨ ‣ ઌഐͷίϛοτΛݟֶͯश͢Δ w ઌഐ΋ؒҧ͏͜ͱ͕͋ΔͷͰ


    ӏವΈʹ͠ͳ͍͜ͱ
  66. ŠŠŠŠŠŠŠŠͱ͋ΔҰ೥ޙͷ࢟

  67. ͓·͚ ;-)

  68. ͓·͚ ;-)

  69. ͓·͚ ;-)

  70. ͓·͚ ;-)

  71. ͓·͚ ;-)

  72. ର৅ֶशΛ࢝Ίͨ͹͔Γͷਓɺ΋ ͘͠͸ͦΕΛҭͯΔཱ৔ͷਓ ৽ଔͷཱ৔͔ΒͲΜͳ͜ͱΛֶͼɺ ͲΜͳ͜ͱΛߟ͍͑ͯͨͷ͔Λ఻ ͑ɺ৘ใڞ༗͍ͨ͠ ໨త

  73. ͓ੈ࿩ʹͳΓ·ͨ͠ !LPJD !ULVOPV !TVHJOPZ !qBEB@BVYW !BJLZP !OTHD !PKJSZ !NVSZPJNQM !TXBNQ

    !IJTBT Special Thanks