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

コードの片付け

 コードの片付け

Bf7ce9b68bbb0058721906b4db15b9b5?s=128

Kei Shiratsuchi

July 25, 2016
Tweet

Transcript

  1. ίʔυͷย෇͚ Rails Girls Tokyo, 2016.07.23(Sat) ന౔ܛ, Shiratsuchi Kei, @kei_s

  2. @kei_s • ന౔ ܛ Shiratsuchi Kei • Web app engineer

    • http://kei.shiratsu.ch/ • http://github.com/kei-s
  3. ίʔυͷย෇͚ʁ • ࢖͍ͬͯͳ͍ϑΝΠϧɾߦ Λ࡟আ͢Δ͜ͱ

  4. ͳͥʁ • ίʔυ͸ڞ༗ͷ޿৔͔ͩΒ
 ੔಴ͯ͠࢖͍΍͘͢

  5. ྫ͑͹ • app/helpers/ comments_helper.rb • ίϝϯτػೳΛ ࡞ͬͨ࣌ɺࣗಈ Ͱ࡞ΒΕ͍ͯͨ

  6. த਎ΛݟΔͱ • view Ͱ࢖͑Δؔ਺Λஔ͘ͱ͜Ζ • ࣗ෼Ͱؔ਺Λ௥Ճ͠ͳ͍ͳΒɺ ͜ͷϑΝΠϧ͸ແͯ͘΋ྑ͍

  7. ย෇͚Α͏ʂ • ফͯ͠΋ɺ໰୊ͳ͘ಈ͘ • ඞཁʹͳͬͨΒɺ
 ͦͷ࣌ʹॻ͚͹େৎ෉

  8. ͳͥʁ • ίʔυ͸ڞ༗ͷ޿৔͔ͩΒ

  9. ίʔυ͸ڞ༗ͷ޿৔ • νʔϜ։ൃͰ͸ɺίʔυ͸ଞਓͱ ڞ༗͢Δ • ࡢ೔ͷࣗ෼΋ɺଞਓͩ͠ • ޙ͔ΒࢀՃͨ͠ਓʹ͸ɺʮΘ͟ͱ ࢒͍ͯ͠Δͷ͔ʯʮ࡟আ͠๨Εͨ ͷ͔ʯΛ൑ผ͢Δͷ͸೉͍͔͠Β

  10. ίʔυ͸ڞ༗ͷ޿৔ • ޿৔ʹ΋ͷ͕์ஔ͞Ε͍ͯΔ ͱɺ࣍ʹདྷͨਓ͕ࠞཚ͢Δ

  11. ফ͍͍ͯ͠ͷʁ • Git Λ࢖͑͹ɺ໭ͤΔʂ

  12. ຊ౰ʹย෇͚͍͍͔ͯෆ҆ • ย෇͚ͯ΋ɺͪΌΜͱಈ͔͘ ෆ҆ • ย෇͚ͯɺಈ͔ͯ͠ΈΑ͏ʂ • ࢥͬͨͱ͓Γಈ͔ͳ͔ͬͨΒɺ Git Λ࢖ͬͯɺ໭ͤΔʂ

  13. ͳ͔ͬͨ͜ͱʹ͍͍͔ͯ͠ ෆ҆ • Git Ͱɺʮย෇͚ͨʯ͜ͱΛه ࿥Ͱ͖Δ • ه࿥Λ௥͑͹ɺ͍ͭย෇͚ͨ ͷ͔Θ͔Δ •

    ޙ͔Β໭ͤΔʂ
  14. Git ͷ࢖͍ํ͸… http://dotinstall.com/lessons/basic_git http://book.impress.co.jp/books/ 1114101005.php

  15. ϘʔΠεΧ΢τɾϧʔϧ • ϩόʔτɾCɾϚʔνϯ
 ʢϘϒ͓͡͞Μʣ • ʮϘʔΠεΧ΢τʹ͸େ੾ͳϧʔϧ͕͋Γ·͢ɻ ͦΕ͸ɺʮདྷͨ࣌ΑΓ΋ඒ͘͠ʯͰ͢ɻͨͱ͑ࣗ ෼͕དྷͨ࣌ʹΩϟϯϓ৔͕Ԛ͘ͳ͍ͬͯͨͱͯ͠ ΋ɺͦͯͨ͠ͱ͑Ԛͨ͠ͷ͕ࣗ෼Ͱͳ͔ͬͨͱ͠ ͯ΋ɺ៉ྷʹ͔ͯ͠Βͦͷ৔ΛڈΔɺͱ͍͏ϧʔ

    ϧͰ͢ɻͦ͏΍ͬͯɺ࣍ʹΩϟϯϓʹདྷΔਓୡ͕ ؾ࣋ͪΑ͘աͤ͝ΔΑ͏ʹ͢ΔͷͰ͢ʯ
  16. ίʔυͷย෇͚ • ͪΐͬͱͣͭย෇͚Δ • ៉ྷ͔Ͳ͏͔͸݁Ռ • ͍͖ͳΓ׬ᘳΛ໨ࢦ͞ͳ͍