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

15 minutes recipe of RxSwift

15 minutes recipe of RxSwift

2016/04/14 - RxSwift 勉強会 #1@Sansan
https://sansan.connpass.com/event/27933/

gomi_ningen

April 14, 2016
Tweet

More Decks by gomi_ningen

Other Decks in Programming

Transcript

  1. ࣗݾ঺հ ๭ϥϏοτϋ΢εࣾͰಇࣾ͘ச৽೥ੜ  ɾ+BWB 4FSWMFUɾ಺੡'8 ɾ4DBMB 1MBZ όοΫΤϯυ։ൃ ɾJ044XJGUΞϓϦ৽ن։ൃɹͳͲ 

    ɾ޷͖ͳݴޠ͸+BWB 4DBMB $ʢ͓࢓ࣄ͓଴ͪͯ͠·͢ʣ ɾ޷͖ͳ࡞඼͸͝஫จ͸͏͗͞Ͱ͔͢  ɾJ04։ൃܦݧ͸·ͩ൒೥΄ͲͳͷͰجຊతʹૉਓͰ͢  🐰͕࣌ؒͳ͍ͷͰࣗݾ঺հ͸ׂѪ͠·͢🐰 !HPNJ@OJOHFO
  2. ࠓ೔࿩͢಺༰ 3Y4XJGUͷ0CTFSWFSؔ࿈جຊ෦඼Λ෼Ͱ࡞ΔϨγϐʂ ෼ͰऴΘΔͱ͸ݴ͍ͬͯͳ͍     0CTFSWFSύλʔϯͷ෮शʢ෼ʣ ͜Ε͕Θ͔Βͳ͍ͱҙຯෆ໌ͳ࿩Λ͢ΔͷͰɺ௒଎Ͱ͓͞Β͍͢Δ  0CTFSWFS

    0CTFSWBCMF*'ͷఆٛʢ෼ʣ 4XJGUͷݴޠ࢓༷ͷ͍ͤͰɺͪΐͬͱ໘౗ͳ࣮૷Λ͢Δඞཁ͕͋Δ  #FIBWJPS4VCKFDUͷ࣮૷ʢ෼ʣ 5ܕͷঢ়ଶ஋Λ؍ଌͰ͖Δ؆୯ͳ0CTFSWBCMF۩৅ΫϥεΛ࡞੒͢Δ  ޙ೔ɺผͷػձ͕͋Ε͹ɺίϯϏωʔλ΍4DIFEVMFSͷ࿩΋͍ͨ͠ ʢ෼͡Όશͯͷઆ໌Λ͢Δͷ͸ແཧʣ
  3. ໰୊ͷղ౴ ࣍ͷΑ͏ͳ໰୊Λղܾ͢ΔͨΊʹ͸Ͳ͏ͨ͠ΒΑ͍Ͱ͠ΐ͏͔ʁ  "ʹมԽ͕ى͖ͨΒɺ#ʹ఻͍͑ͨ      

     "͕#ͷΠϯελϯεΛอ࣋͠ɺ#ʹมߋΛ఻͑Δ ʢ͜ͷߏ଄Ͱ໰୊ΛͪΌΜͱղܾͰ͖͍ͯΔͷͰਖ਼͍͠ʣ
  4. ໰୊ ࣍ͷΑ͏ͳ໰୊Λղܾ͢ΔͨΊʹ͸Ͳ͏ͨ͠ΒΑ͍Ͱ͠ΐ͏͔ʁ  "ʹมԽ͕ى͖ͨΒɺ#ʹ఻͍͑ͨ ͨͩ͠ɺҟͳΔ*'Λ࣋ͬͨ௨஌ઌ͕૿͑Δ͜ͱ͕༧૝͞Ε͍ͯΔ  ݱ࣮ੈքͰྫ͑Δͱ  ɾ"͸ɺ# $

    %ͱ଴ͪ߹ΘͤΛ͍ͯ͠Δ ɾ଴ͪ߹Θͤ৔ॴΛมߋ͍ͨ͠ͷͰɺมߋΛ஌ΒͤΔඞཁ͕͋Δ ɾ#͸UXJUUFS $͸ϝʔϧ %͸-*/&Ͱ΍ΓͱΓΛ͢Δඞཁ͕͋Δ  "͸ͦΕͧΕͷ*'Λ஌͍ͬͯͳ͍ͱ͍͚ͳ͍ͷͰେม
  5. ·ͱΊ ɾ0CTFSWFS 0CTFSWBCMFͷ*'͸QVTIܕ0CTFSWFS ɹύλʔϯ͔Βࣗવʹಋ͘͜ͱ͕Ͱ͖Δ  ɾQVTI͢Δ஋ʹOFYU FSSPS DPNQMFUFEͱ͍͏ҙຯ෇͚Λ ɹ͢Δ͜ͱʹΑͬͯػೳੑΛ޲্͍ͤͯ͞Δͷ͕ಛ௃త 

    ɾߪಡղআͷ࢓૊ΈΛ%JTQPTBCMFʹҕৡ͍ͯ͠Δͷ͕ಛ௃త  ͳ͓ɺࠓ೔஻ͬͨ͜ͱͱεϥΠυͷ಺༰͸͔ͳΓઆ໌ෆ଍ͳͷͰɺڵຯ Λ࣋ͨΕͨํ͸ҎԼͷهࣄΛ͝ཡ͍͚ͨͩΔͱ޾͍Ͱ͢ IUUQRJJUBDPNHPNJ@OJOHFOJUFNTEDBBCFBBFC 
  6. ͦͷଞ3Y4XJGUʹؔ͢Δ׆ಈ 3Y4XJGUؔ࿈ͷهࣄ౳ɺଟ਺ॻ͍ͯ·͢ͷͰΑΖ͓͘͠ئ͍͠·͢🙏  <2JJUB>J04ΞϓϦ։ൃࣄྫͷ͝঺հ IUUQRJJUBDPNHPNJ@OJOHFOJUFNTCCBCE  <$>هࣄ͝஫จ͸3YͰ͔͢  /"/"," *OTJEF13&44WPMʢୈ̓։ൃηΫγϣϯʣ

    IUUQTTJUFTHPPHMFDPNTJUFEBJTFD  <χίφϨ>3Y4XJGUΛ༻͍ͨΞϓϦ։ൃͷ࣮ફ IUUQOJDPOBSFOJDPWJEFPKQXBUDILO  ͦͷଞɺ3Y4XJGUؔ࿈ͷωλ͸ͨ͘͞Μ͋ΔͷͰɺԿ͔ػձ͕͋ͬͨΒݺΜͰ͍ͩ͘͞