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

Scaffold を読む会

Scaffold を読む会

Rails way について説明した。

pokotyamu

June 29, 2018
Tweet

More Decks by pokotyamu

Other Decks in Technology

Transcript

  1. ͓લ͸୭ͳΜʁ ͑ʔͪΌΜͱਃ͠·͢ ▸ ෌ా ӳ༞ @pokotyamu ▸ ৽ଔ3೥໨ 26ࡀ ▸

    Rails Ͱ͝Γ͝Γ։ൃͯ͠·͢ ▸ e-Navigator ͷϨϏϡΞʔͱӡӦ΍ͬͯ·͢ ▸ ΢σϚΤ SͱA+Λ΢ϩ΢ϩ͍ͯ͠ΔΧδϡΞϧ੎
  2. ΕʔΔʹ৐ͬͯ͜ Rails way ʹ৐Δ͜ͱ্ͦ͜ୡͷ伴 ▸ Rails ͸ര଎Ͱ Web ΞϓϦέʔγϣϯΛ։ൃ͢ΔͨΊͷ
 ϑϨʔϜϫʔΫͰ͢

    ▸ Web ΞϓϦέʔγϣϯΛ࡞Δ্Ͱඞཁͳ͜ͱΛԾఆͯ͠ɺ Α͠ͳʹ࡞ͬͯ͘ΕΔ ▸ ͜ͷԾఆ͕ͦ͜ Rails way (Rails ͷࢥ૝)
  3. Rails way ͬͯͲΜͳ΋ͷ͕͋Δʁ Rails way Λ஌Ζ͏ ▸ ઃఆΑΓن໿͕༏ઌ(Conversion Over Configuration)

    ▸ ಉ͜͡ͱΛ܁Γฦ͞ͳ͍(Don’t Repeat Yourself: DRY) ▸ REST(REpresentational State Transfer) ▸ ࣗಈςετ(Test Automation)
  4. Rails way ͬͯͲΜͳ΋ͷ͕͋Δʁ Rails way Λ஌Ζ͏ ▸ ઃఆΑΓن໿͕༏ઌ(Conversion Over Configuration)

    ▸ ಉ͜͡ͱΛ܁Γฦ͞ͳ͍(Don’t Repeat Yourself: DRY) ▸ REST(REpresentational State Transfer) ▸ ࣗಈςετ(Test Automation)
  5. CoC ઃఆΑΓن໿ ▸ ։ൃऀ͕೰·ͳ͍Α͏ʹ RoR ͷن໿ʹଇͬͯΞϓϦΛ࡞Δ ▸ ྫɿϢʔβʔΛදݱ͢ΔϞσϧΛ User ͱͨ࣌͠

    ▸ DBͷςʔϒϧ໊͸ Users ▸ /users ͱ͍͏ URL ͸ϢʔβʔҰཡΛද͢ ▸ Ϣʔβʔ ID: 1 Λද͢ URL ͸ /users/1
  6. Rails way ͬͯͲΜͳ΋ͷ͕͋Δʁ Rails way Λ஌Ζ͏ ▸ ઃఆΑΓن໿͕༏ઌ(Conversion Over Configuration)

    ▸ ಉ͜͡ͱΛ܁Γฦ͞ͳ͍(Don’t Repeat Yourself: DRY) ▸ REST(REpresentational State Transfer) ▸ ࣗಈςετ(Test Automation) ޙ΄ͲɺσϞΛࠞͥͯઆ໌͠·͢
  7. Rails way ͬͯͲΜͳ΋ͷ͕͋Δʁ Rails way Λ஌Ζ͏ ▸ ઃఆΑΓن໿͕༏ઌ(Conversion Over Configuration)

    ▸ ಉ͜͡ͱΛ܁Γฦ͞ͳ͍(Don’t Repeat Yourself: DRY) ▸ REST(REpresentational State Transfer) ▸ ࣗಈςετ(Test Automation)
  8. ༻๏༻ྔΛकͬͯͶ Rails way ʹ৐ΔͨΊʹ͸ʁ ▸ Rails ίϚϯυΛ࢖͏ʂʂʂʂ ▸ Rails ίϚϯυΛਖ਼͘͠࢖͏ʂʂʂʂ

    ▸ ͲΜͳϑΝΠϧ͕Ͱ͖Δͷʁ ▸ ͳͥ͜Μͳॻ͖ํͯ͠Δͷʁ ▸ Ͳ͏֦ு͢Ε͹৐Γଓ͚ͭͭॻ͚Δ͔Λ஌ΕΔ
  9. ༻๏༻ྔΛकͬͯͶ Rails way ʹ৐ΔͨΊʹ͸ʁ ▸ Rails ίϚϯυΛ࢖͏ʂʂʂʂ ▸ Rails ίϚϯυΛਖ਼͘͠࢖͏ʂʂʂʂ

    ▸ ͲΜͳϑΝΠϧ͕Ͱ͖Δͷʁ ▸ ͳͥ͜Μͳॻ͖ํͯ͠Δͷʁ ▸ Ͳ͏֦ு͢Ε͹৐Γଓ͚ͭͭॻ͚Δ͔Λ஌ΕΔ ࠇຐज़ʹ͠ͳ͍ʂʂʂ