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

Architecture_for_mobile_development.pdf

itome
March 14, 2019

 Architecture_for_mobile_development.pdf

itome

March 14, 2019
Tweet

More Decks by itome

Other Decks in Technology

Transcript

  1. 13 ΞʔΩςΫνϟ͕ਁಁ͢Δલͷιϑτ΢ΣΞ։ൃ 3min ଞʹ΋ɿ DRYݪଇ KISSݪଇ ڽूɾ݁߹ݪଇ ։์ɾด࠯ݪଇ ݁ՌͷہॴԽ ܁Γฦ͠ͷ࠷খԽ

    ϩδοΫͱσʔλͷҰମԽ ରশੑݪଇ ϙϦϞʔϑΟζϜ ৘ใͷӅṭ ΧϓηϧԽ ׬શੑɾॆ଍ੑɾϓϦϛςΟϒ ؔ৺ͷ෼཭ ϙϦγʔͱ࣮૷ͷ෼཭ ࢀরͷҰ఺ੑ ςετ༰қੑ ୯७ݪཧ ໌ূݪཧ ڻ͖࠷খͷݪଇ ৑௕ੑ ࢀরಁաੑ ݆໿ͷݪଇ ϘʔΠεΧ΢τϧʔϧ GOFσβΠϯύλʔϯ σϧϝϧͷ๏ଇ SOLIDݪଇ ҆ఆੑͷݪଇ ֊૚ݪཧ ґଘੑٯసͷݪଇ ૬ޓӡ༻ੑ ࠶ར༻ ΠϯλʔϑΣ ௚ަੑ ܖ໿ʹΑ ๷ޚతϓ Ӫ δϣ
  2. 16 ΞʔΩςΫνϟ͕ਁಁ͢Δલͷιϑτ΢ΣΞ։ൃ 3min ΞϓϦέʔγϣϯ͸ΑΓଟػೳʹ ΞϓϦέʔγϣϯͷঢ়ଶ͸ΑΓෳࡶʹ ɾϝοηʔδػೳ ɾ௨࿩ػೳ ɾࣸਅɺಈըࡱӨ ɾܾࡁػೳ ɾϝσΟΞͷ࠶ੜ

    ɾݸਓؒૹۚ ɾը૾ิਖ਼ ɾϩάΠϯ͍ͯ͠Δʁ ɾܾࡁ৘ใ͸ొ࿥͞Ε͍ͯΔʁ ɾ௨஌͸ڐՄ͍ͯ͠Δʁ ɾ֎෦αʔϏε͸࿈ܞ͍ͯ͠Δʁ
  3. 37 ͍Ζ͍ΖͳΞʔΩςΫνϟͷ঺հ 6min ɾMVC Model View Controller ΞϓϦέʔγϣϯͷϩδοΫΛ୲౰͢Δ ը໘ͷඳըΛ୲౰͢Δ Model

    - ViewͷؒʹཱͬͯͦΕͧΕͷೖग़ྗΛ ந৅Խ͢Δ ex) View͔Βड͚औͬͨΫϦοΫΠϕϯτΛ ɹʮσʔλΛऔಘ͍ͨ͠ʯͱ͍͏ϦΫΤετͱͯ͠ ɹ ModelʹૹΔ
  4. 46 ͍Ζ͍ΖͳΞʔΩςΫνϟͷ঺հ 6min ɾClean Architecture ϝϦοτ σϝϦοτ ֤ϨΠϠʔͷ੹຿͕໌֬ͳͨΊɺ ԿΛͲ͜ʹॻ͔͕࣮͘૷ऀʹΑͬͯ มΘΔ͜ͱ͕গͳ͍

    DDD(υϝΠϯۦಈઃܭ)Λ΋ͱʹ ͍ͯ͠ΔͨΊɺClean Architecture Ͱྑ͍ίʔυΛॻ͘ʹ͸DDDͷ஌ࣝ ͕ඞཁʹͳΔ UseCase૚͕ॲཧΛࡉ͔͘ ෼ׂ͢ΔͨΊɺϩδοΫͷ࠶ར༻ੑ͕ ߴ·Δ
  5. 50 ͍Ζ͍ΖͳΞʔΩςΫνϟͷ঺հ 6min ɾFlux ϝϦοτ σϝϦοτ ঢ়ଶ͕Storeʹू໿͞ΕΔͨΊ ؅ཧ͕͠΍͍͢ ಉظతͳঢ়ଶߋ৽Λجຊʹ ͍ͯ͠ΔͨΊɺ௨৴ͳͲͷඇಉظ

    ॲཧͱͷ࿈ܞʹ͸޻෉͕ඞཁ ΞʔΩςΫνϟϨϕϧͰςετ༰қੑ ͕ߟ͑ΒΕ͍ͯΔ ঢ়ଶͷߋ৽͕Actionͱ݁ͼͭͨ͘Ί ͲͷΑ͏ͳঢ়ଶߋ৽͕͋Δ͔Λ Ұཡ͠΍͍͢
  6. 54 ͍Ζ͍ΖͳΞʔΩςΫνϟͷ঺հ 6min ɾMVI ϝϦοτ σϝϦοτ ঢ়ଶߋ৽ͷϩδοΫͷࢀরಁաੑ ͕୲อ͞Ε͍ͯΔͨΊɺςετ͕ ॻ͖΍͍͢ FluxΑΓ΋֤Ϟδϡʔϧͷ໾ׂ͕

    ࡉ෼Խ͞Ε͍ͯΔͨΊɺ ࣮૷ऀʹΑΔίʔυͷϒϨ͕গͳ͍ ϘΠϥʔϓϨʔτ͕ଟ͘ɺ؆୯ͳ࣮૷Λ ͢Δ͚ͩͰ΋ଟ͘ͷίʔυΛॻ͘ඞཁ͕ ͋Δ