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

danger-swift-kantoku

Elvis Shi
February 22, 2022

 danger-swift-kantoku

Elvis Shi

February 22, 2022
Tweet

More Decks by Elvis Shi

Other Decks in Programming

Transcript

  1. 9DPEFͷϏϧυϫʔχϯά౳Λ

    13ʹใࠂ͢Δ%BOHFS4XJGUϓϥάΠϯ͕

    3VCZ੡πʔϧͷग़ྗʹґଘͯ͠Δ͔Β

    Զ͕৽͍͠ͷΛ࡞ͬͯ΍Δ
    ஶɿ੕໺ܙྤ
    ֆ˞ɿ͍Β͢ͱ΍
    ˞ΠϥετૉࡐҾ༻Ͱ͢ɻ
    4XJGUѪ޷ձจݿWPM

    View full-size slide

  2. ʲୈרʳ

    13ͷ%BOHFSใࠂʹ

    9DPEFͷϏϧυϫʔχϯά

    ཉ͍͠ΑͶʁ

    View full-size slide

  3. ʲୈষʳ%BOHFSͬͯɺͳʔʹʁ
    w ϦϙδτϦʔΛ੩తݕࠪ͢Δπʔϧ
    w νΣοΫ͍߲ͨ͠໨Λ%BOHFS
    fi
    MF

    ͱ͍͏εΫϦϓτͰॻ͚͹৭ʑ

    ػցతʹνΣοΫͯ͘͠ΕΔ
    w ͞·͟·ͳϓϥάΠϯͰ͍ΖΜͳ
    ͜ͱ͕Ͱ͖Δ
    w 4XJGUͰεΫϦϓτॻ͚Δ%BOHFS
    4XJGU΋͋Δ
    w IUUQTHJUIVCDPNEBOHFSTXJGU

    View full-size slide

  4. ʲୈষʳ9DPEFͷϏϧυϫʔχϯάใࠂʁ
    w 9DPEF͕Ϗϧυ࣌ʹ༷ʑͳϫʔχϯ
    ά΍ΤϥʔΛు͖ग़ͯ͘͠ΕΔ
    w %FQSFDBUFE΍3FOBNF৘ใ͚ͩ
    Ͱͳ͘ϓϩδΣΫτઃఆͳͲͷ
    ϫʔχϯά΋͋Δ
    w 4XJGU-JOU͕͋Ε͹ͦΕͷϫʔχ
    ϯά΍Τϥʔ΋ు͖ग़ͯ͘͠ΕΔ
    w ͜Μͳศརͳ΋ͷ͸౰વ13ͷίϝ
    ϯτͰཉ͍͠ΑͶʁʁ
    w ࣮͸ͦΜͳϓϥάΠϯ͕طʹ͋Δ

    View full-size slide

  5. ʲୈষʳEBOHFSTXJGUYDPEFTVNNBSZʁ
    w 9DPEFͷϏϧυ֓ཁΛरͬͯ͘ΕΔ
    ϓϥάΠϯ
    w ϫʔχϯά΍Τϥʔ͚ͩͰͳ͘ɺ
    ςετͷ݁Ռ΋ίϝϯτ౤ߘͯ͠
    ͘ΕΔ
    w ͨͩ͠YDQSFUUZٴͼYDQSFUUZKTPO
    GPSNBUUFSͷग़ྗ͕ඞཁ
    w ͜ΕΒͷπʔϧͷΠϯετʔϧʹ
    3VCZͷύοέʔδϚωʔδϟʔ
    (FN#VOEMFS͕ඞཁ

    View full-size slide

  6. 3VCZґଘ͸ݏͩʂ

    View full-size slide

  7. ʲୈרʳ

    ։ൃ؀ڥ͔Β

    3VCZΛഉআ͍ͨ͠ΑͶʁ

    View full-size slide

  8. ʲୈষʳ3VCZͷݖݶ໰୊ʁ
    w NBD04͸3VCZ؀ڥΛ಺ଂ͍ͯ͠Δ
    w ؆୯ͳ3VCZεΫϦϓτ࡞੒ͳΒ
    ͙͢Ͱ͖ΔͷͰඇৗʹָ
    w ͱ͜Ζ͕(FNͰԿ͔֎෦ύο
    έʔδΛೖΕΑ͏ͱ͢Δͱ࣮ߦऀ
    ͷݖݶͱΠϯετʔϧઌͷύεͷ
    ݖݶ͕߹Θͳ͍ͨΊ͙ࣦ͢ഊ͢Δ
    w ܦݧऀͳΒSCFOWͷಋೖͰղܾͰ͖
    Δ
    w ͔͠͠ॳ৺ऀ͸ͦΕΛ஌Βͳ͍͠
    άάͬͯ΋͙͢DINPEͱ͔TVEP
    ͱ͔ѱຐͷܖ໿Λͤ͞Α͏ͱ͢Δ

    View full-size slide

  9. ʲୈষʳ͡Ό͋SCFOWಋೖͤ͞Ε͹ʁ
    w SCFOWͷಋೖ͸)PNFCSFXʹґଘ͢Δ
    w )PNFCSFX͸ݸਓ։ൃͳΒศརͩ
    ͕ɺόʔδϣϯࢦఆ͕Ͱ͖ͳ͍ͨ
    ΊɺΈΜͳͷ؀ڥΛ౷Ұ͍ͨ͠νʔ
    Ϝ։ൃʹ͸ෆ޲͖
    w ͞Βʹ)PNFCSFXύοέʔδ͸

    άϩʔόϧ؀ڥͰͷΠϯετʔϧʹ
    ͳΔͷͰɺͦΕԚ͢ͱෳ਺ϓϩδΣ
    Ϋτͷಉ࣌ਐߦʹࢧো͕ग़͔Ͷͳ͍
    w SCFOWͷӡ༻͸TIFMMϓϩϑΝΠϧͷॻ
    ͖׵͑΋ඞཁ
    w ؀ڥߏஙͷͨΊͷεΫϦϓτࣗମ͕
    ॻ͖ʹ͍͘

    View full-size slide

  10. ʲୈষʳͦΜͳʹ3VCZऔͬ෷͍͍ͨͷʁ
    w ͦ΋ͦ΋%BOHFS͔Β%BOHFS4XJGUʹ
    Ҡߦͨ͠ͷ΋3VCZΛॻ͖ͨ͘ͳ͍͔Β
    w ͩͬͯ4XJGU͕ॻ͖͍ͨ΋Μʂ
    w ΏΊΈͷձࣾੑ࣭తʹ΋άϩʔόϧ؀ڥ
    ΛԚ͢ͷ͸ͳΔ΂͘ආ͚͍ͨ
    w ৗʹԿ͔৽ϓϩδΣΫτ͕ੜ·ΕΔ
    w ҰਓͰෳ਺ͷҊ݅ΛݟΔͷ͸౰ͨΓલ
    w ଐਓԽ๷ࢭͷͨΊʹϩʔςʔγϣϯ΋
    ඞཁ
    w ͳͷͰ؀ڥߏங͸άϩʔόϧͰ͸ͳ͘
    ֤ϓϩδΣΫτࣗ਎ͷϩʔΧϧ؀ڥͰ
    ׬͍݁ͨ͠

    View full-size slide

  11. ŷƤƶƐ3VCZ
    ㆮŧƑƒबŻƦƍŧ

    View full-size slide

  12. ʲୈרʳ

    ΤϯδχΞͨΔऀ

    ͳ͍෺͸࡞Δ͔͠ͳ͍ΑͶʁ

    View full-size slide

  13. ʲୈষʳYDSFTVMUͬͯͷ͕͋ΔΒ͍͠Αʁ
    w 9DPEF͔Β࠾༻͞ΕͨϏϧυ݁Ռ
    όϯυϧ
    w Ϗϧυϩά͚ͩͰͳ͘ɺςετʹ
    ؔ࿈͢Δ৘ใ΋ڭ͑ͯ͘ΕΔ
    w ͨͩ͠த਎͸όΠφϦͳͷͰղੳ
    ͢Δͷʹ͸ެࣜπʔϧ͕ඞཁ
    w ࣮͸ຊՈ%BOHFSͷϓϥάΠϯ
    EBOHFSYDPEF@TVNNBSZ͸طʹ
    YDSFTVMUʹରԠࡁΈ
    w ͔͠͠ຊՈ%BOHFS͸3VCZ੡ͩ
    ͔Βෆ࠾༻

    View full-size slide

  14. ʲୈষʳͲ͏΍ͬͯϓϥάΠϯ࡞Δͷʁ
    w %BOHFS4XJGUͷϓϥάΠϯ੍࡞ͳΒ
    ܦݧ͸͋Δ
    w طʹEBOHFSTXJGUTIPLJ΍
    EBOHFSTXJGUFEBΛ࡞ͬͨ
    w ௨ৗͷϥΠϒϥϦͱಉ͡Α͏ͳײ֮
    Ͱ࡞ΕΔ
    w %BOHFS4XJGUΛґଘͱͯ͠௥Ճ
    w ඞཁͳλΠϛϯάͰ%BOHFS%4-
    Λݺͼग़ͤ͹͍͍

    View full-size slide

  15. ʲୈষʳͲ͏࢖͏ͷʁ
    w %BOHFS4XJGUͷґଘύοέʔδʹ
    EBOHFSTXJGULBOUPLVΛ௥Ճ
    w %BOHFS
    fi
    MFTXJGU಺ͰEBOHFS

    LBOUPLVQBSTF9$3FTVMU'JMFΛݺͼ
    ग़͠YDSFTVMUϑΝΠϧΛ౉͢
    w Ҏ্

    View full-size slide

  16. ね?簡単でしょ?

    View full-size slide

  17. ʲୈרʳ

    ͜Μͳૉ੖Β͍͠΋ͷ

    ΋ͬͱৄ͘͠஌Γ͍ͨΑͶʁ

    View full-size slide

  18. ʲୈষʳͲͷΑ͏ʹಈ͘ͷʁ
    w %BOHFS4XJGUΛ$*αʔϏεͰճ͢
    ͱɺϓϥάΠϯ͕YDSFTVMUΛύʔε
    ͢Δ
    w ϫʔχϯά΍ΤϥʔͳͲͷ*TTVF͕
    ͋ͬͨΒ%BOHFS4XJGUΛ௨ͯͦ͡
    ͷ··13ϖʔδʹίϝϯτͯ͘͠
    ΕΔ
    w *TTVFʹϑΝΠϧύεͱߦ਺͕ඥ
    ෇͚͞Εɺ͞ΒʹͦΕ͕ࠓճͷࠩ
    ෼ൣғ಺ͳΒɺ*OMJOFͰίϝϯτ
    ͯ͘͠ΕΔ
    w ͦΕҎ֎ͷ*TTVF͸௨ৗίϝϯτ
    ͯ͘͠ΕΔ

    View full-size slide

  19. ʲୈষʳ࣮૷ʹ͓͍ͯͷ৺ಘͳͲ͸ʁ
    w YDFSTVMUΛࣗྗͰύʔε͢Δͷ͸

    ඇৗʹେม
    w 9$3FTVMU,JUͱ͍͏·͞ʹͦͷҝ
    ͷϥΠϒϥϦʔ͕͋Δ
    w ࠶ൃ໌͠ͳ͍͍ͯ͘ंྠ͸࠶ൃ໌͠
    ͳ͍͍ͯ͘Αʢ࠶ؼʣ
    w ߦ਺ࢦఆʹؾΛ͚ͭΔ΂͖
    w YDSFTVMU͔Βऔಘͨ͠ୈԿߦ໨ͷ
    ݁Ռ͸͔Β਺͑ͨ݁Ռ
    w Ұํ(JU)VCͰୈԿߦ໨ʹ*OMJOF
    ίϝϯτ͍ͨ࣌͠͸͔Β਺͑ͨ
    ݁Ռ

    View full-size slide

  20. ʲୈষʳϏϧυϩά͔͠ରԠ͠ͳ͍ͷʁ
    w ࠓޙ͸ςετϨϙʔτ΍ΧόϨοδ
    ͳͲͷίϝϯτ΋ରԠ͍͖͍ͯͨ͠
    w ͜ΕΒͷ৘ใ͸શͯYDSFTVMU͔Β
    ؆୯ʹऔಘͰ͖Δ
    w ΧελϚΠζੑ΋ߋʹ޲্͍͖ͯ͠
    ͍ͨ
    w ࠩ෼Ҏ֎ͷϫʔχϯάΛແࢹͨ͠
    Γɺϫʔχϯά͕Ұఆ਺௒͑Δͱ
    13Λࣦഊʹ͢Δࢦఆ΋ೖΕ͍ͨ

    View full-size slide

  21. Զͨͪͷઓ͍͸

    ͜Ε͔Βͩ

    View full-size slide

  22. Ωϟϥ঺հɿEBOHFSTXJGULBOUPLV
    w ຊ࡞඼ͷओਓެ
    w ਓ͕ؒಡΊͳ͍όΠφϦϑΝΠϧ
    Ͱ΋Ί͛ͳ͍࠳͚ͳ͍ؤுΓ԰
    w ੒௕్தͷβɾओਓެΩϟϥ
    w IUUQTHJUIVCDPNZVNFNJ
    JODEBOHFSTXJGULBOUPLV

    View full-size slide

  23. Ωϟϥ঺հɿZVNFNJJOD
    w EBOHFSTXJGULBOUPLVͷอޢऀ
    w ༷ʑͳاۀ͞Μ͔Β։ൃͷ૬ஊΛ
    ड͚ͯΔ#O#$ͷձࣾΒ͍͠
    w ݱࡏJ04ΤϯδχΞΛؚΉ֤৬छ
    ͷ࠾༻׆ಈΛߦͳ͍ͬͯΔ
    w IUUQTXXXZVNFNJDPKQ

    View full-size slide

  24. ஶऀ঺հɿ੕໺ܙྤ
    w ͱʹ͔͘4XJGU৴ऀ
    w ݩ"VUP-BZPVUઈର˓͢Ϛϯ
    w ݱࡏ3VCZઈର˓͢ϚϯͷงғؾΛ
    ৢ͠ग़ͯ͠Δʂʁ
    w UXJUUFSɿ!MPWFF
    w RJJUBɿMPWFF
    w (JU)VCɿFMIPTIJOP

    View full-size slide