refinementsを使ってみた話

4b13a6148de3f910428bb8ea15754eae?s=47 Takeo Fujita
April 20, 2017
190

 refinementsを使ってみた話

Meguro.rb #2 LT

4b13a6148de3f910428bb8ea15754eae?s=128

Takeo Fujita

April 20, 2017
Tweet

Transcript

  1. SFpOFNFOUTΛ ࢖ͬͯΈͨ࿩ !ULFP

  2. ࣗݾ঺հ w !ULFP w HSJNPJSFͱ͍͏ձࣾͰεϚϗͷήʔϜ࡞ͬͯ·͢ w αʔόʔαΠυશ෦୲౰ʢΠϯϑϥؚΊʣ

  3. ࠓ೔ͷ಺༰ w ήʔϜͷӡ༻Ͱࣦഊͨ͠࿩ͱ w ͦͷରԠͷதͰSFpOFNFOUTΛ࢖ͬͯΈͨ࿩ w SVCZͷόʔδϣϯ͸Ͱ͢

  4. σʔλߋ৽ϑϩʔ Ҏલ w ϚελʔσʔλΛεςʔδϯά؀ڥͷ؅ཧը໘͔Β Πϯϙʔτ ϓϥϯφʔ  w ࣮ػ֬ೝ ϓϥϯφʔ

     w Τϥʔௐࠪ ΤϯδχΞ  w σʔλमਖ਼͠ɺ࠶౓Πϯϙʔτɺ֬ೝ ϓϥϯφʔ  w Կ౓͔܁Γฦ͢ w ௚ͬͨΒຊ൪΁
  5. ϑϩʔվળ w ΤϥʔͷݪҼ͸୯७ͳσʔλೖྗϛεͰ͋Δ͜ͱ͕ ଟ͍ w νΣοΫΛࣗಈԽ w ΤϥʔௐࠪෆཁʹͳΕ͹ɺೋਓͰ΍͍ͬͯͨͷ͕Ұ ਓͰ׬݁͢ΔΑ͏ʹͳΔ

  6. σʔλߋ৽ϑϩʔ վ w ϚελʔσʔλΛεςʔδϯά؀ڥͷ؅ཧը໘͔Β Πϯϙʔτ ϓϥϯφʔ  w σʔλΛνΣοΫ͢Δδϣϒ͕ࣗಈͰ૸ͬͯɺ͓͔ ͠ͳՕॴ͕͋Ε͹௨஌

    w σʔλमਖ਼͠ɺ࠶౓Πϯϙʔτ ϓϥϯφʔ  w Կ౓͔܁Γฦ͢ w ࣮ܰ͘ػͰ֬ೝ w ຊ൪΁
  7. ࠷ॳͷ࣮૷ ࣦഊ w WBMJEBUJPOΛ࢖͏ w ผNPEVMFʹ෼͚͓͍ͯͯνΣοΫ͢Δͱ͖ʹ NPEVMFΛJODMVEF͢Δ

  8. ྫ w ࣮ࡍͷίʔυͱ͸ҧ͍·͢ DMBTT2VFTU"QQMJDBUJPO3FDPSE IBT@NBOZRVFTU@SFXBSET FOE DMBTT2VFTU3FXBSE"QQMJDBUJPO3FDPSE FOE

  9. NPEVMF2VFTU7BMJEBUPS FYUFOE"DUJWF4VQQPSU$PODFSO JODMVEFEEP WBMJEBUFT@QSFTFODF@PGOBNF WBMJEBUFT@QSFTFODF@PGRVFTU@SFXBSET FOE FOE DMBTT.BTUFS%BUB7BMJEBUJPO+PC JODMVEF4VDLFS1VODI+PC EFGQFSGPSN

    2VFTUJODMVEF 2VFTU7BMJEBUPS  JOWBMJE@SFDPSET2VFTUTFMFDU JOWBMJE  OPUJGZ@UP@TMBDL JOWBMJE@SFDPSET  FOE FOE
  10. w ͜ΕͰ෦෼తͳ͕ΒνΣοΫ͕ࣗಈԽͰ͖ͨʂʂ w ΊͰͨ͠ΊͰͨ͠ w ͷ͸͕ͣͩͬͨʜ

  11. ͋Δ೔ͷࣄ݅ w Πϯϙʔτͨ͠͸ͣͷσʔλ͕ೖ͍ͬͯͳ͍ w ΍Γ௚͢ͱೖͬͨΓೖΒͳ͔ͬͨΓ

  12. ͳͥʁ w JODMVEF͢ΔͱͦΕҎ߱ͦͷϓϩηεͰ͸ͣͬͱ JODMVEF͞Εͨ·· w JODMVEFࡁΈͩͱ௥ՃͷWBMJEBUJPO͕૸ΔͨΊɺσʔ λͷ౤ೖॱʹΑͬͯ͸TBWFʹࣦഊ͢Δ w VOJDPSOͷϓϩηε͕ෳ਺ಈ͍͍ͯͯɺJODMVEF͞ Εͨ΋ͷͱ͞Ε͍ͯͳ͍΋ͷ͕ࠞࡏ͍ͯͨ͠

    w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