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

survival-strategy-of-the-frontend

sakunyo
October 15, 2016

 survival-strategy-of-the-frontend

sakunyo

October 15, 2016
Tweet

Other Decks in Technology

Transcript

  1. $ npm start twitter : @sakunyo job:ϑϦʔϥϯε fun: Sci-Fi, Comedy

    (The Big Bang Theory) like: Vim, Sass, express, npm, Docker, jetBrains, BrowserStack, Bash, Proxy * * * Web੍࡞डୗ͔ΒWebαʔϏε΁స޲ɺ"#ςετͳͲʜ 
  2.  ҆શͰมԽʹڧ͍ϓϩμΫτͱ͸ʁ  ϑϩϯτΤϯυͷӡ༻ʹ଱͑Δ  ϦϑΝΫλϦϯά͠΍͍͢  ίʔυʢαʔϏεʣͷ҆શੑΛߴΊΔ  ίʔυͷ඼࣭ͱํ޲ੑʢΞʔΩςΫνϟʣ͕ఆ·͍ͬͯΔ

    ࣮ݱ͢ΔͨΊʹϨΨγʔίʔυվળΨΠυΛࢀߟʹɺ ͔͠͠ɺϨΨγʔίʔυվળΨΠυͷ୊ࡐͰ͋Δओཁݴޠ͕+BWB +BWB4DSJQUͱ͸؀ڥ͕ҧ͏ʂ ͔͠͠ࢀߟʹͳΔ෦෼͕͖ͬͱ͋Δ͸ͣʜ
  3. ϨΨγʔίʔυ ϨΨγʔίʔυͷѱ॥؀ w ίʔυͷ୅ँ͕ѱ͘ͳΔͱ
 ৭ʑͳࢪࡦ͕ଧͯͳ͍ w αʔϏεྗͷ௿Լ  ػೳͷ௥Ճͱվम 

    όά  6*ͷվળ  "#ςετ ࣮૷  ίʔυͷཧղ  Ձ஋wϓϥΠΦϦςΟ  ඇޓ׵ͳػೳ ෛ࠴  ෳࡶͳίʔυɾύον  ௿͍ϓϥΠΦϦςΟ  ςετίʔυ͕ͳ͍
  4. )5.-ͭΒ͍ )5.-ͱ+BWB4DSJQUͷґଘ͕ϖʔδશମʹ͓ΑͿ  JavaScript HTML Element Function Element Element Element

    Function )5.-ͷߏ଄ʹରͯ͠+BWB4DSJQUͱͷ݁߹Օॴ͕ ଟ͘ͳΔ΄ͲϦεΫ͕ߴ͘ͳΔ  )5.-ͷߏ଄͕มΘΔͱಈ࡞͕มΘΔ  +BWB4DSJQUͷݺͼग़͠ॱͰ6*ͷಈ࡞͕มΘΔ  ҙਤ͍ͯ͠ͳ͍ಈ࡞Ͱม਺͕มߋ͞ΕΔ
  5. ϓϨθϯςʔγϣϯͱσʔλͷ෼཭ΛؤுΔ  )5.-ͱ+4ͷ݁߹ํ޲ʢ݁߹ՕॴʣΛ੔ཧ͢Δʢ'MVYMJLFʣ  7JFXʹϩδοΫΛ٧Ίࠐ·ͳ͍  )5.-ଆʹσʔλΛ࣋ͭ৔߹ʹ͸ Read Only ͰΞΫηε͢ΔʢEBUBଐੑʣ

     3FBDU 7VF "OHVMBSͳͲίϯϙʔωϯτԽʹಛԽͨ͠ϥΠϒϥϦΛ࢖͏  )5.-ۃྗॻ͖ͨ͘ͳ͍͞ΜνʔϜ  খ͞ͳίϯϙʔωϯτ͔Βಋೖ͢Δ  Dispatcher Store View Action Flux
  6. +BWB4DSJQUͷείʔϓ ແܭըͳΫϩʔδϟཚ༻͕ͭΒ͍  ςετ͍ͨؔ͠਺͕ؔ਺είʔϓͷதʹ͋Δ  ςετɺϦϑΝΫλϦϯάͭΒ͍  ϨΨγʔίʔυվળΨΠυͰ͸  ݕग़༻ม਺Λ༻ҙ͢Δʢςετͷ֬ೝ༻ʹҰ࣌తʹಋೖ͢Δม਺ʣ

     ߜΓࠐΈ఺Λݟ͚ͭΔʢػೳΛςετ͢ΔͨΊͷཧ૝తͳ৔ॴʣ  είʔϓ֎΁ͷνϥݟͤม਺΍ؔ਺Λ༻ҙ͢ΔࣄͰطଘͷಈ࡞͸ͦͷ··Ͱςετ Ͱ͖ͦ͏  ίʔυΛϞδϡʔϧԽͯ͠SFRVJSFΛੵۃతʹ࢖͏  #SPXTFSJGZ 8FCQBDL͋Γ͕͍ͨ 
  7. .VUBCMFͭΒ͍ ͏͔ͬΓ஋Λมߋͯ͠͠·͍σʔλʹෆ੔߹͕ʜ +BWB4DSJQUͰ*NNVUBCMFʢෆมʣͱ.VUBCMFʢมߋՄೳʣΛ࢖͍෼͚Δ  PCKFDUͰঢ়ଶΛ؅ཧ͢ΔͷͳΒ4UPSFʢ.PEFMʣΛؤுΔɻFH3FEVY  FTMJOU  *NNVUBCMFKT 

    QVSFGVODUJPO  TUBUFMFTT  6*ͷ৔߹ʹ͸ཁૉΛมߋ͢Δ͜ͱ͕ଟ͍ͷͰTUBUFMFTTʹ͸ݶ౓͕͋Δ  Ұൠతʹม਺͸গͳ͍ํ͕޷·͍͠ͱ͞Ε͍ͯΔ  WBSEBUBGPPHFU%BUB UIJTEBUB EBUBqHUSVF0CKFDU͕ࢀরͳͷΛ๨Ε্ͯॻ͖
  8. ςετ͕͋Ε͹҆৺ʁ  ϓϩμΫτͷՁ஋͕͓͓͸͹ʹԼ͕Δ  ػೳ͠ͳ͍ϑΥʔϜɺػೳ͠ͳ͍6*  ಛఆͷϒϥ΢β͕εϙΠϧ͞ΕΔ6*  ςετͷछྨʹΑͬͯ͸๷͛ͳ͍ࣄ΋͋Δ 

    5FTUͷಛੑʹΑΓΧόʔ͢Δൣғ͕ҧ͏ͷͰͲΕ͔ҰͭͰे෼Ͱ͸ͳ͍  ςετʹ͸ίετ͕͔͔Δ ςετ͕͋ΔࣄͰ  ίʔυͷมߋ͕͜Θ͘ͳ͍  ϓϩμΫτͷՁ஋͕ߴ͘ͳΔ  Ϣʔβʔʹ༏͍͠ 
  9. ඞཁͳςετ͔Β௥Ճ͢Δ  ࢓༷Խςετ  ࣮ࡍͷৼΔ෣͍Λ໌Β͔ʹ͢ΔͨΊͷςετ  όά΍ෆे෼ͳػೳ͕ݟ͔ͭͬͯ΋खΛೖΕͳ͍  Ϣʔβʔૢ࡞ʹ߹ΘͤͯςετΛ௥Ճ͢ΔʢGFBUVSF #%%ʣ

     ػೳ͠ͳ͍6*͸Ϣʔβʔʹͱͬͯ࠷ѱͷܦݧ  4FMFOJVN #SPXTFS4UBDLͳͲͰࣗಈԽ͢Δ  ࢓༷Խςετ ৼΔ෣͍ςετ
 #%% ςετ͕ͳ͍ ςετεΠʔτͷ੒௕
  10. 5ZQF  ੩తղੳ͕͸͔ͲΔ  ίϯύΠϥ·͔ͤ  ςετ௥ՃͷϦϑΝΫλϦϯά࣌ʹ
 ίϯύΠϧΤϥʔΛࢀߟʹϦϑΝΫλΛਐΊΔख๏  *OUFSGBDF

    5ZQFΛ׆༻ͯ͠ΤϥʔΛݕग़͠΍͘͢͢Δ   !qPX  UZQF5OVNCFS WBSY5 Y5l)FMMPzFSSPS
  11. ྫ֎ॲཧܥͷςετ ςετͰݕग़Ͱ͖ͳ͍Τϥʔ͸ऩू͢Δ  ΤϥʔϩάΛऩू͢Δ  XJOEPXPOFSSPS ϩάऩूαʔόʔ  TFOUSZ SPMMCBS

    "#ςετ͸ςετ͢Δ΂͖ʁ  "#ςετͰϩδοΫ͕มߋ͞ΕΔ৔߹ͭΒ͍ʜ  ϕλʔͳํ๏͕ཉ͍͠  "#ςετͷ+BWB4DSJQUΛ֎෦αʔϏεʹஔ͔ͳ͍